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
The Emergency transaction PSBT (base64 encoded), or null if we are not a stakeholder
unvault_emergency
string
The Unvault Emergency transaction PSBT (base64 encoded), or null if we are not a stakeholder
listonchaintransactions
List the transactions related to a list of vaults that were broadcast on the Bitcoin
network (hence they may be unconfirmed). Will error if any of the vaults is unknown.
Parameter
Type
Description
outpoints
string array
Vault IDs -- optional, filter the list with the given vault Outpoints
Height of the block containing the transaction, null if unconfirmed
blocktime
int or null
Timestamp of the block containing the transaction, null if unconfirmed
hex
string
Hexadecimal of the network-serialized transaction
received_at
int
Transaction reception date as the number of seconds since UNIX epoch
getrevocationtxs
The getrevocationtxs RPC Command builds and returns the (unsigned) revocation transactions
corresponding to a given vault. The call will fail if the outpoint does not refer to a
known and confirmed (funded) vault.
Request
Parameter
Type
Description
outpoint
string
Deposit outpoint of the vault
Response
Field
Type
Description
cancel_txs
string array
List of the base64-encoded Cancel transactions PSBTs
emergency_tx
string
Base64-encoded Emergency transaction PSBT
emergency_unvault_tx
string
Base64-encoded Unvault Emergency transaction PSBT
revocationtxs
Hand signed PSBTs to the daemon. The PSBT may comport multiple signatures, but the call
will error if the signature for "our" key is not part of this set.
See the flows for more information.
Request
Field
Type
Description
outpoint
string
Deposit outpoint of the vault
cancel_txs
string array
List of base64-encoded Cancel transactions PSBTs
emergency_tx
string
Base64-encoded Emergency transaction PSBT
emergency_unvault_tx
string
Base64-encoded Unvault Emergency transaction PSBT
Response
None; the result field will be set to the empty object {}. Any value should be
disregarded for forward compatibility.
getunvaulttx
The getunvaulttx RPC Command builds and returns the unvault transaction of the given
vault.
Request
Parameter
Type
Description
outpoint
string
Deposit outpoint of the vault to activate
Response
Field
Type
Description
unvault_tx
string
Base64-encoded Unvault transaction PSBT
unvaulttx
Hand signed Unvault PSBT to the daemon. The PSBT may comport multiple signatures, but the call
will error if the signature for "our" key is not part of this set.
Will error if the vault is not secured, or already active.
See the flows for more information.
Request
Field
Type
Description
outpoint
string
Deposit outpoint of the vault to activate
unvault_tx
string
Base64-encoded Unvault transaction PSBT
Response
None; the result field will be set to the empty object {}. Any value should be
disregarded for forward compatibility.
getspendtx
The getspendtx RPC Command builds and returns the spend transaction given a
set of vaults to spend.
The updatespendtx RPC Command stores or update the stored Spend transaction with the
given one. The signatures from both the old & the new transactions will be merged.
Request
Field
Type
Description
spend_tx
string
Base64-encoded Spend transaction PSBT
Response
None; the result field will be set to the empty object {}. Any value should be
disregarded for forward compatibility.
delspendtx
Request
Field
Type
Description
spend_txid
string
Hex encoded txid of the Spend transaction to delete
Response
None; the result field will be set to the empty object {}. Any value should be
disregarded for forward compatibility.
change_index and cpfp_index indicate the index of the change (if any) and CPFP outputs in the outputs array as created by getspendtransaction. This does not aim to tag all the outputs paying to either a CPFP or a Deposit descriptor, as that would be impossible to guarantee. If two outputs pay to the change, the index of the last one will be returned. If two outputs pay to the CPFP address, the index of the first one will be returned.
setspendtx
Announce a Spend transaction to be used (after having optionally polled the cosigning servers),
broadcast its corresponding Unvault transactions and broadcast it as soon as the timelock expires.
Request
Field
Type
Description
spend_txid
string
Txid of the Spend transaction to use
priority
bool
Whether or not the transaction has priority. Optional, defaults to false. If the transaction has priority, the tx itself and its unvaults will be CPFPed if they can't make it to the next block.
Response
None; the result field will be set to the empty object {}. Any value should be
disregarded for forward compatibility.
gethistory
gethistory retrieves a paginated list of accounting events.
Aiming at giving an accounting point of view, the amounts returned by this call are the total
of inflows and outflows net of any change amount (that is technically a transaction output, but not a cash outflow).
Request
Field
Type
Description
kind
string array
Type of the events to retrieve, can be deposit, cancel, spend
start
int
Timestamp of the beginning of the period to retrieve events for
end
int
Timestamp of the end of the period to retrieve events for