Skip to main content

Overview

Sending assets uses the standard wallet.send() method. Specify the recipient address, an optional BTC amount (in satoshis), and the assets to transfer. The recipient does not need to be online.

Setup

Import the SDK and create a wallet:
Your wallet needs an offchain balance to cover transaction fees. See Receiving Payments to fund your wallet.

Receive Assets

You can either receive assets directly to your Arkade address, or issue a new asset:

Send a Partial Amount

Transfer some units of an asset to another wallet. The remaining units stay in your wallet as change.

Send All Units

First, calculate your remaining balance:
Now, transfer the entire asset balance to another wallet:
After sending all units, your wallet will have zero balance for that asset.

Send with BTC

Attach a BTC amount alongside the asset transfer:
The recipient receives both the BTC and the asset on the same VTXO.

Send Multiple Assets

Pass multiple entries in the assets array to send several assets in one transaction:

Next Steps

Issue Assets

Create new assets

Check Balance

Query how many units your wallet holds