curl --request POST \
--url https://api.example.com/api/v1/wallet/import-vtxo \
--header 'Content-Type: application/json' \
--data '
{
"vtxos": [
"<string>"
]
}
'[
{
"amount_sat": 1,
"chain_anchor": "<string>",
"exit_delta": 1,
"exit_depth": 1,
"expiry_height": 1,
"id": "<string>",
"policy_type": "<string>",
"server_pubkey": "<string>",
"user_pubkey": "<string>",
"state": {
"type": "spendable"
}
}
]Imports hex-encoded serialized VTXOs into the wallet. Validates that each VTXO is anchored on-chain, owned by this wallet, and has not expired. Useful for restoring VTXOs after database loss or re-importing from the server mailbox. The operation is idempotent.
curl --request POST \
--url https://api.example.com/api/v1/wallet/import-vtxo \
--header 'Content-Type: application/json' \
--data '
{
"vtxos": [
"<string>"
]
}
'[
{
"amount_sat": 1,
"chain_anchor": "<string>",
"exit_delta": 1,
"exit_depth": 1,
"expiry_height": 1,
"id": "<string>",
"policy_type": "<string>",
"server_pubkey": "<string>",
"user_pubkey": "<string>",
"state": {
"type": "spendable"
}
}
]Hex-encoded VTXOs to import
VTXO imported successfully
The value of this VTXO in sats.
x >= 0The on-chain outpoint that roots this VTXO, formatted as
txid:vout. Typically an output of a round transaction or a
board transaction.
The relative timelock, in blocks, that must elapse before the final on-chain claim in an emergency exit.
x >= 0The number of off-chain transactions in this VTXO. Each must be broadcast and confirmed on-chain in sequence during an emergency exit.
x >= 0The block height at which this VTXO expires. After expiry, the server can reclaim the sats. Refresh before expiry to receive new VTXOs, or exit to move them on-chain.
x >= 0Unique identifier for this VTXO, formatted as txid:vout.
The spending policy that governs this VTXO.
The Ark server's public key used to co-sign transactions involving this VTXO.
The owner's public key. Only the holder of the corresponding private key can spend this VTXO.
The current state of this VTXO in the wallet.
Show child attributes
Was this page helpful?