Subscription Methods
Subscription Methods

Subscription Methods

Subscription Methods

Intro

Subscribe to the response, and decide the finality of the transaction.

Video

Topics covered

  • Subscribe to an account.
  • Subscribing is not enough, we need to listen to the response.
  • Always verify with delivered_amount field, so that you don’t get tricked with partial payment.
  • Subscribe to the ledger, and output the ledger index number in real-time.
  • unsubscribe command.

References

💡
Final tip: If you are subscribing to ledger events on client side, make sure to unsubscribe before leaving the page, inorder to avoid memory leaks.
💠
https://xrpl-labs.com

Footer Social Icons

© XRPL Labs - https://xrpl-labs.com