v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Transactions

Get a Transaction Output by Hash and Index

Get a transaction output by a user-defined transaction hash and the transaction output index.

get/{protocol}/{network}/tx/{hash}/{index}

Path parameters

protocolstring required

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}.

hashstring required

The transaction hash.

indexinteger required

The transaction output index.

Response

Transaction output.

status'mined' | 'unknown'

The result status of the transaction output.

is_spentboolean

If the transaction output was spent or not, if the value is true the spent transaction object will be presented.

valueinteger nullable

The amount of transaction output.

Example response

{
  "is_spent": true,
  "spent": {
    "index": 1,
    "tx_id": "57f7dc46786c5d56d260186d459f1246943dd6e83ca00235909dad1b826f20b4",
    "date": 1571222657,
    "block_id": "0xaf2948aba2ed8cc7d5b7d4e4f4164a7c8819efc94d30aab3fce6904df68dbc07",
    "block_number": 77477,
    "confirmations": 10
  },
  "mined": {
    "index": 1,
    "tx_id": "57f7dc46786c5d56d260186d459f1246943dd6e83ca00235909dad1b826f20b4",
    "date": 1571222657,
    "block_id": "0xaf2948aba2ed8cc7d5b7d4e4f4164a7c8819efc94d30aab3fce6904df68dbc07",
    "block_number": 77477,
    "confirmations": 10
  }
}