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.

Setup

Load the mnemonic you stored when you created your wallet, for example from an environment variable. In Node.js, also pass storage to Wallet.create.
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:
preconfirmed is true until a batch swap settles the virtual output. 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

notifyIncomingFunds() calls your callback 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

When a notification arrives, 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.