Skip to main content
An Arkade address is a bech32m string that encodes two public keys: the operator’s public key, and a Taproot output key derived from your contract’s spending paths. You share an address to receive Bitcoin within Arkade. Anyone can decode it to see which operator it belongs to and which key it commits to. The same two keys produce a different address per network: the prefix is the only difference.

Get your address

A wallet derives its address from its mnemonic. Call getAddress():
For wallet setup, see Create Your Wallet.
To move onchain Bitcoin into Arkade, use the boarding address instead: await wallet.getBoardingAddress(). See Boarding & Offboarding.

Decode an address

The examples below use @scure/base to convert keys to and from hex. Install it next to the SDK:
ArkAddress.decode parses an address back into its components:
Output:

The default payment script

The Taproot key in your address commits to a contract with two spending paths:
  • The forfeit path is a collaborative spend signed by you and the operator. Every Arkade transaction uses this path, which is how offchain transfers settle.
  • The exit path is a unilateral spend you can use onchain after the timelock expires. If the operator is ever unavailable, this path keeps your funds recoverable.
Each script-path spend reveals only the path it uses; the rest of the tree stays hidden.
An address with only these two paths is the simplest kind of Arkade address. Renewal stops when your app stops, so most wallets also use a delegate, which renews their virtual outputs while the app is offline. A wallet created with a delegateProvider gets a third path for the delegate, which gives it a different address. See Delegation.

Build the script yourself

The SDK constructs this script for you. To build it yourself, pass DefaultVtxo.Script your x-only public key, the operator’s x-only public key, and the exit timelock. The example reads the operator’s key and exit timelock from the operator, as Wallet.create does. For a new wallet without a delegate, it prints the same address as wallet.getAddress().