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. 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

Call getAddress() on the wallet:
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:
pkScript is the P2TR scriptPubKey for regular outputs: OP_1 followed by the Taproot key. subdustPkScript is the OP_RETURN scriptPubKey for sub-dust outputs.

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. Arkade transactions spend through this path.
  • 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.
A wallet that delegates renewal to an executor receives into a delegated contract with a third function, renew, which gives it a different address. The executor renews the wallet’s virtual outputs through that function while the app is offline. See Delegated Renewal.

Build the script yourself

To build the script 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. Until a wallet registers renewal with an executor, the example prints the same address as wallet.getAddress().