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 Unvault Emergency transaction, or null if we are not a stakeholder
Presigned tx
Field
Type
Description
psbt
string
The presigned transaction as a base64-encoded PSBT
hex
string or null
If fully-signed, the presigned transaction as a hex-encoded Bitcoin transaction
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
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_tx
string
Base64-encoded Cancel transaction PSBT
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_tx
string
Base64-encoded Cancel transaction PSBT
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.
Please note that this status refers only to the Spend transaction, with regarding to the signatures and the broadcast status.
You'll have to manually fetch the vaults statuses if you want to know, for example, if the vault was canceled or not.
Value
Description
non_final
The Spend transaction is not final, we are awaiting signatures either from managers or cosigners
pending
The transaction is not broadcasted to the Bitcoin network
Array of the deposit outpoints of the vaults this transaction spends
psbt
string
Base64-encoded Spend transaction PSBT
change_index
integer
Index of the change output, might be null
cpfp_index
integer
Index of the CPFP outputs
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
Request
Field
Type
Description
spend_txid
string
Txid of the Spend transaction to use
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
cursor
int
Timestamp of the date to retrieve events after
limit
int
Number of events to retrieve
kind
string array
Type of the events to retrieve, can be deposit, cancel, spend