POST /wallet/utxos
Returns the list of unspent transaction outputs (UTXOs) for a Bitcoin wallet.
Request
| Field | Type | Required | Notes |
|---|---|---|---|
api_key | string | ✓ | Customer API key. |
wallet_id | string | ✓ | Accepts wallet ID, address, or wallet name. |
Response
| Field | Description |
|---|---|
txid | Transaction hash containing the output. |
vout | Output index within the transaction. |
amount_btc | Value in BTC. |
confirmations | Blockchain confirmations. |
script | Output script in hex. |
Errors
| Status | Payload | When it happens |
|---|---|---|
400 | { "error": "Missing required fields" } | Missing api_key or wallet_id. |
403 | { "error": "API key is not valid" } | API key fails validation. |
404 | { "error": "Wallet not found" } | Wallet does not exist or isn’t owned by your account. |
400 | { "error": "Wallet is not a BTC wallet" } | Wallet belongs to another network. |
500 | { "error": "<message>" } | Unexpected service error. |