curl --request POST \
--url https://api.example.com/api/v1/wallet/send-onchain \
--header 'Authorization: Bearer <token>' \
--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 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_sat": 1,
"destination": "<string>"
}
'{
"offboard_txid": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
Base64url-encoded auth token
The amount (in satoshis) to be received by destination onchain. Must be
= P2TR_DUST [blocked]. Server-configured fees laid out in OffboardFees [blocked] will be added on top of this amount.
x >= 0The destination Bitcoin address
Returns the offboard transaction id
The transaction id of the offboard transaction
Was this page helpful?