Get on-chain balance
trusted_spendable_sat field is the sum of confirmed_sat and trusted_pending_sat—the balance that can be safely spent without risk of double-spend.
Response
total(integer) - Total balance in satoshistrusted_spendable(integer) - Confirmed plus trusted pendingimmature(integer) - Coinbase outputs that haven’t matured yettrusted_pending(integer) - Unconfirmed outputs from transactions we createduntrusted_pending(integer) - Unconfirmed outputs from external sourcesconfirmed(integer) - Confirmed balance
Example
Generate on-chain address
Response
Example
Send on-chain payment
Request body
destination(string, required) - Bitcoin addressamount_sat(integer, required) - Amount in satoshis
Response
Example
Errors
400- Invalid destination address or address not valid for configured network
Send to multiple addresses
address:amount. Broadcasts the transaction immediately at a feerate targeting confirmation within three blocks and returns the transaction ID.
Request body
destinations(array of strings, required) - Array ofaddress:amountpairs
Response
Example
Errors
400- Invalid destination format or invalid address
Drain on-chain wallet
Request body
destination(string, required) - Bitcoin address
Response
Example
Errors
400- Invalid destination address or address not valid for configured network
List on-chain UTXOs
Response
outpoint(string) - Transaction ID and output index in formattxid:voutamount_sat(integer) - Amount in satoshisconfirmation_height(integer or null) - Block height where confirmed, ornullif unconfirmed
Example
List on-chain transactions
Response
txid(string) - Transaction IDsent_sat(integer) - Amount sent in satoshisreceived_sat(integer) - Amount received in satoshisfee_sat(integer) - Transaction fee in satoshisconfirmation_height(integer or null) - Block height where confirmed, ornullif unconfirmedtimestamp(integer) - Unix timestamp
Example
Sync on-chain wallet
Response
Returns200 on success with no body.