Skip to main content
Boarding swaps a confirmed onchain output for a virtual output in a commitment transaction. Offboarding (collaborative exit) swaps virtual outputs for an onchain output the same way. Both need onchain transactions, confirmation waits, and amounts large enough to cover Bitcoin network fees. The SDK wraps both in the Ramps class.

Boarding

To board, you send bitcoin to your wallet’s boarding address. The address locks funds to the same Taproot script shape as every Arkade output: a collaborative spending path (your key and the operator’s key) and a unilateral path (your key alone, after a timelock).
1

Generate a boarding address

Get a boarding address from your wallet:
2

Send bitcoin to the address

Fund the address from any Bitcoin wallet and wait for the transaction to confirm. Until the deposit settles, getBalance() reports it under boarding.
3

Settle the deposit

The running wallet settles confirmed deposits by itself, within about a minute. You don’t need to call anything.Calling onboard on that wallet races the automatic settlement, and both can try to spend the same deposit. If the wallet settled the deposit first, onboard throws No boarding utxos available after deducting fees. Call onboard only on a wallet created with settlementConfig: false. That setting also turns off automatic renewal.
4

The operator settles the batch

The operator cosigns and processes the exchange in a commitment transaction and broadcasts it.
5

Receive the virtual output

Once the commitment transaction confirms, the virtual output appears in your wallet, spendable like any other.

Offboarding

Offboarding is collaborative withdrawal: the TypeScript SDK spends your virtual outputs as inputs to a batch, and the commitment transaction pays a conventional onchain output to your destination address. Offboarding is always collaborative. If the operator is unavailable, the fallback is a unilateral exit, covered below.
1

Set the destination and amount

2

Request the offboard

The TypeScript SDK selects the virtual outputs to spend. The operator charges a fee for the onchain output, and offboard takes that fee out of amount. The destination receives less than amount.
To deliver exactly amount to the destination, call offboardExact instead. The wallet then pays the fee on top of amount:
3

The operator settles the batch

The operator cosigns and processes the exchange in a commitment transaction and broadcasts it.
4

Receive onchain bitcoin

Once the commitment transaction confirms, the destination output is yours onchain.

Unilateral Exit

Every Arkade output carries a unilateral spending path: your key alone, after a relative timelock. In the case of virtual outputs, taking that path means broadcasting a chain of presigned transactions yourself and paying miner fees on each one, so it costs more than offboarding. Use it only if the operator is unavailable.
Check the output’s state before you start. Expired, swept, or subdust outputs can need recovery instead.
1

Create and fund an onchain wallet

Unrolling broadcasts each presigned transaction in the chain, and each broadcast pays miner fees from an onchain wallet you control:
Send bitcoin to this address to cover the fees.
2

Unroll the virtual output

Unrolling publishes the presigned transactions in sequence, with confirmation waits between steps:
After the exit transactions confirm, getBalance() reports the output under unrolled.
3

Wait for the timelock

After unrolling, wait for the CHECKSEQUENCEVERIFY (CSV) relative timelock to expire. Only then can you spend the output. On mainnet, the delay is currently 605,184 seconds, about 7 days. wallet.arkProvider.getInfo() returns it as unilateralExitDelay.
4

Claim the output

Once the timelock expires, claim your bitcoin:
See Unilateral Exit for path requirements, timelocks, and fees.