Skip to main content
Assets arrive at an Arkade address the same way BTC does: on a virtual output. Each virtual output lists the assets it holds in its 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:
Verify the asset before you accept deposits of it, and filter by its asset ID.

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:
Read the virtual outputs that already hold the asset:
withRecoverable: true also returns virtual outputs that need recovery before you can spend them.

Subscribe to New Outputs

Use notifyIncomingFunds() to receive an event when a virtual output arrives at or leaves the address:
newVtxos lists every new virtual output at the address. This includes change from your own sends and virtual outputs renewed in a batch swap. Don’t credit deposits from newVtxos.

Credit Deposits

Use the notification as a signal, then read the transaction history. The history doesn’t list change or renewals as received transactions. Each RECEIVED entry lists its assets in assets:
The subscription stops when your process stops. After a restart, read the transaction history again to find deposits that arrived while you were offline.

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