v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Balances & UTXO

Get a List of Transaction Inputs and Outputs

Returns the transaction inputs and outputs following the BTC's UTXO model definition by a user-definied account address.

get/{protocol}/{network}/account/{address}/utxo

Path parameters

protocolstring required

The protocol handle, one of: bitcoin, bitcoincash, dogecoin, litecoin.

networkstring required

Which network to target. Available networks can be found in the list of supported protocols or with /{protocol}.

addressstring required

The account address of the protocol.

Query parameters

spentboolean

Whether the transaction output was spent or not.

check_mempoolboolean

Whether to check for UTXOs spent in the mempool as well as UTXOs pending in the mempool.

frominteger

The Unix Timestamp from where to start.

tointeger

The Unix Timestamp from where to end.

order'desc' | 'asc'

The pagination order.

page_tokenstring

The token to retrieve more items in the next request. Use the next_page_token returned from the previous response for this parameter.

page_sizeinteger

The max number of items to return in a response Defaults to 50k and is capped at 100k.

Response

Transaction outputs filtered by the given parameters

totalinteger

The number of total items.

Example response

{
  "total": 25,
  "data": [
    {
      "status": "mined",
      "value": 600,
      "spent": {
        "index": 1,
        "tx_id": "57f7dc46786c5d56d260186d459f1246943dd6e83ca00235909dad1b826f20b4",
        "date": 1655419925,
        "block_id": "00000000000000000008ad1bdca4288143a0cb20e71de0808a066db89857e153",
        "block_number": 741100,
        "confirmations": 1619
      },
      "mined": {
        "index": 1,
        "tx_id": "57f7dc46786c5d56d260186d459f1246943dd6e83ca00235909dad1b826f20b4",
        "date": 1655419925,
        "block_id": "00000000000000000008ad1bdca4288143a0cb20e71de0808a066db89857e153",
        "block_number": 741100,
        "confirmations": 1619
      },
      "pending": {
        "index": 1,
        "tx_id": "57f7dc46786c5d56d260186d459f1246943dd6e83ca00235909dad1b826f20b4",
        "date": 1655419925,
        "block_id": "00000000000000000008ad1bdca4288143a0cb20e71de0808a066db89857e153",
        "block_number": 741100,
        "confirmations": 1619
      }
    }
  ]
}