Subscribe to Custom Events
Use theSubscribeEvents call to listen for custom or existing events from any contract. Make sure that the event
string matches the event signature in Solidity and define the contract address that you want to listen to. You can define
additional filters to only receive events from specific wallets or token Ids.
The OnEventReceived function provides a SubscribeEventsReturn object that includes
any information such as contract type, transaction hash and more. When you want to retrieve the emitted event values,
use EventDecoded object at SubscribeEventsReturn > EventLog > EventDecoded.
Subscribe to Balance Updates
Listen to balance updates for wallets on a specified contract. TheOnBalanceUpdateReceived function provides
a SubscribeBalanceUpdatesReturn object that includes the current balance of the wallet address you specified.
Subscribe to Receipts
Listen to receipt updates on a specified contract. TheOnSubscribeReceiptsMessageReceived function provides
a SubscribeReceiptsReturn object that includes the current receipt information.