Offboard vtxos, or "collaborative exit" vtxos to onchain address.
The destination address to offboard to.
The fee info to deduct from the offboard amount.
Optionalamount: bigintThe amount to offboard. If not provided, the total amount of vtxos will be offboarded.
OptionaleventCallback: (event: SettlementEvent) => voidThe callback to receive settlement events. optional.
Onboard boarding utxos.
The fee info to deduct from the onboard amount.
OptionalboardingUtxos: ExtendedCoin[]The boarding utxos to onboard. If not provided, all boarding utxos will be used.
Optionalamount: bigintThe amount to onboard. If not provided, the total amount of boarding utxos will be onboarded.
OptionaleventCallback: (event: SettlementEvent) => voidThe callback to receive settlement events. optional.
Ramps is a class wrapping IWallet.settle method to provide a more convenient interface for onboarding and offboarding operations.
Example