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. CallgetAddress():
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:
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.
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, 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. For a new wallet without a delegate, it prints the same address as wallet.getAddress().