The same two keys produce a different address per network: the prefix is the only difference.
Get your address
CallgetAddress() on the 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:
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.
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, passDefaultVtxo.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().