SHARE
TWEET

Untitled

a guest Jun 24th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. horizon.transactions()
  2.         .cursor('now')
  3.         .stream({
  4.             onmessage: async function (tx) {
  5.                 let operations = await tx.operations();
  6.                 console.log(operations.records[0].id);
  7.             }
  8.         });
  9.      
  10. horizon.operations()
  11.         .cursor('now')
  12.         .stream({
  13.             onmessage: function (op) {
  14.                 console.log(op.id);
  15.             }
  16.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top