curl --request POST \
--url https://api.example.com/api/v1/onchain/drain \
--header 'Content-Type: application/json' \
--data '
{
"destination": "<string>"
}
'{
"txid": "<string>"
}Sends the entire on-chain wallet balance to the specified address. The recipient receives the full balance minus transaction fees. Broadcasts immediately at a fee rate targeting confirmation within three blocks and returns the transaction ID.
curl --request POST \
--url https://api.example.com/api/v1/onchain/drain \
--header 'Content-Type: application/json' \
--data '
{
"destination": "<string>"
}
'{
"txid": "<string>"
}Was this page helpful?