assets field. To detect deposits of one asset, watch for virtual outputs that hold it. Then confirm each deposit in the transaction history before you credit it.
Setup
Import the SDK and create a wallet:List Asset Outputs
One virtual output can hold more than one asset. This helper returns one entry for each virtual output that holds the asset:withRecoverable: true also returns virtual outputs that need recovery before you can spend them.
Subscribe to New Outputs
UsenotifyIncomingFunds() to receive an event when a virtual output arrives at or leaves the address:
Credit Deposits
Use the notification as a signal, then read the transaction history. The history doesn’t list change or renewals as received transactions. EachRECEIVED entry lists its assets in assets:
Next Steps
Verify Metadata
Check the decimals, supply, and control asset of an asset
Payment History
Read the sent and received transactions of a wallet