curl --request POST \
--url https://api.example.com/api/v1/wallet/send-onchain \
--header 'Content-Type: application/json' \
--data '
{
"amount_sat": 1,
"destination": "<string>"
}
'{
"offboard_txid": "<string>"
}Sends the specified amount to an on-chain address using the wallet’s off-chain Ark balance. The on-chain transaction fee is paid on top of the specified amount. Internally creates an out-of-round transaction to consolidate VTXOs into the exact amount needed, then cooperatively sends the on-chain payment via the Ark server. To offboard entire VTXOs without specifying an amount, use offboard/vtxos or offboard/all instead.
curl --request POST \
--url https://api.example.com/api/v1/wallet/send-onchain \
--header 'Content-Type: application/json' \
--data '
{
"amount_sat": 1,
"destination": "<string>"
}
'{
"offboard_txid": "<string>"
}Was this page helpful?