Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement