You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether this coin was created by a coinbase transaction that is still immature.
Spending transaction info
Field
Type
Description
txid
str
Spending transaction's id.
height
int or null
Block height the spending tx was included at, if confirmed.
createspend
Create a transaction spending one or more of our coins. All coins must exist and not be spent.
Will error if the given coins are not sufficient to cover the transaction cost at 90% (or more) of
the given feerate. If on the contrary the transaction is more than sufficiently funded, it will
create a change output when economically rationale to do so.
You can create a send-to-self transaction by not specifying any destination. This command will
create a single change output. This may be useful to "refresh" coins whose timelocked recovery path
may be close to expiry without having to bear the complexity of computing the correct amount for the
change output.
This command will refuse to create any output worth less than 5k sats.
Request
Field
Type
Description
destinations
object
Map from Bitcoin address to value.
outpoints
list of string
List of the coins to be spent, as txid:vout.
feerate
integer
Target feerate for the transaction, in satoshis per virtual byte.
Response
Field
Type
Description
psbt
string
PSBT of the spending transaction, encoded as base64.
updatespend
Store the PSBT of a Spend transaction in database, updating it if it already exists.
Will merge the partial signatures for all inputs if a PSBT for a transaction with the same txid
exists in DB.
Request
Field
Type
Description
psbt
string
Base64-encoded PSBT of a Spend transaction.
Response
This command does not return anything for now.
Field
Type
Description
listspendtxs
List stored Spend transactions.
Request
This command does not take any parameter for now.
Field
Type
Description
Response
Field
Type
Description
spend_txs
array
Array of Spend tx entries
Spend tx entry
Field
Type
Description
psbt
string
Base64-encoded PSBT of the Spend transaction.
updated_at
int or null
UNIX timestamp of the last time this PSBT was updated.
delspendtx
Request
Field
Type
Description
txid
string
Hex encoded txid of the Spend transaction to delete
Response
This command does not return anything for now.
Field
Type
Description
broadcastspend
Request
Field
Type
Description
txid
string
Hex encoded txid of the Spend transaction to broadcast
Response
This command does not return anything for now.
Field
Type
Description
startrescan
Request
Field
Type
Description
timestamp
int
Date to start rescanning from, as a UNIX timestamp
Response
This command does not return anything for now.
Field
Type
Description
listconfirmed
listconfirmed retrieves a paginated and ordered list of transactions that were confirmed within a given time window.
Confirmation time is based on the timestamp of blocks.
Create a transaction that sweeps all coins for which a timelocked recovery path is
currently available to a provided address with the provided feerate.
The timelock parameter can be used to specify which recovery path to use. By default,
we'll use the first recovery path available. If created for a later timelock a recovery
transaction may be satisfied using an earlier timelock but not the opposite.
Due to the fact coins are generally received at different block heights, not all coins may be
spendable through a single recovery path at the same time.
This command will error if no such coins are available or the sum of their value is not enough to
cover the requested feerate.
Request
Field
Type
Description
address
str
The Bitcoin address to sweep the coins to.
feerate
integer
Target feerate for the transaction, in satoshis per virtual byte.
timelock
int or null
Recovery path to be used, identified by the number of blocks after which it is available.
Response
Field
Type
Description
psbt
string
PSBT of the recovery transaction, encoded as base64.
updatelabels
Update the labels from a given map of key/value, with the labelled bitcoin addresses, txids and outpoints as keys
and the label as value. If a label already exist for the given item, the new label overrides the previous one.
Request
Field
Type
Description
labels
object
A mapping from an item to be labelled (an address, a txid or an outpoint) to a label string (at most 100 chars long).
getlabels
Retrieve a map of items and their respective labels from a list of addresses, txids and outpoints.
Items without labels are not present in the response map.
Request
Field
Type
Description
items
string array
Items (address, txid or outpoint) of which to fetch the label.
Response
Field
Type
Description
labels
object
A mapping of bitcoin addresses, txids and oupoints as keys, and string as values