Transaction Object

GET <API_ENDPOINT>/v0/<CHAIN>/transaction/id/<TXN_HASH>

Transaction objects are returned by multiple methods, in varying levels of detail. The API will give you less detail by default, and you can add URL params to increase the detail level. In general:

Be warned that just requesting ?showtxnio=1 every time will considerably slow down the response time of the API and increase the amount of data you'll receive in each API call. Only turn these options on when you're sure you need the additional information.

Note Transaction return by Address functions have a special set of extra info to that reflects the relationship between the Transaction and the Address. (see below for the extra elements)

Examples

Example Output Minimum Information

{"id"="94C0BBEA9CE28A5631642252E0EEAE36F9DC91E62F87310B064CEC4BFCE9DCBA"}

Medium Information

{
    "id": "ABD2D6C1AB01F1CA22137AC67F73ABC72D006A1519F313522FDD759F71347764",
    "size": 817,
    "version": 1,
    "time": 0,
    "is_coinbase": 0,
    "fees": 0,
    "fees_fiat_now": 0,
    "fees_disp": "0.00000000",
    "block_id": "00000000000000001E1B2CC3C89B90C98DC0C59BC839B38DB6DBEDD5724752A8",
    "block_height": 326035,
    "block_time": 1413727866,
    "confirmations": 0,
    "input_count": 5,
    "input_value": 201042953,
    "input_value_fiat_now": "777.20",
    "input_value_disp": "2.01042953",
    "output_count": 2,
    "output_value": 201042953,
    "output_value_fiat_now": 777.2,
    "output_value_disp": "2.01042953",
}

Maximum Information

{
    "id": "ABD2D6C1AB01F1CA22137AC67F73ABC72D006A1519F313522FDD759F71347764",
    "size": 817,
    "version": 1,
    "time": 0,
    "is_coinbase": 0,
    "fees": 0,
    "fees_fiat_now": 0,
    "fees_disp": "0.00000000",
    "block_id": "00000000000000001E1B2CC3C89B90C98DC0C59BC839B38DB6DBEDD5724752A8",
    "block_height": 326035,
    "block_time": 1413727866,
    "confirmations": 0,
    "input_count": 5,
    "input_value": 201042953,
    "input_value_fiat_now": "777.20",
    "input_value_disp": "2.01042953",
    "output_count": 2,
    "output_value": 201042953,
    "output_value_fiat_now": 777.2,
    "output_value_disp": "2.01042953",
    "inputs": [
        {
            "value": 71817918,
            "value_fiat_now": 277.64,
            "value_disp": "0.71817918",
            "tx_id": "0A216FA9DD2EACB1E74E533E648DFC1B4ECADFF2726C922547DE2600A3725F77",
            "tx_pos": 2373,
            "address": "1A9oR5ngk5iapd4zs7ekYetLPNgDdhhpQs"
        },
        <SNIP_TXN_INPUTS>
    ],
    "outputs": [
        {
            "pos": 0,
            "script_pub_key": "76A91437F777D8005840C3FF3AF318959D26F134A0547688AC",
            "pubkey_hash": "37F777D8005840C3FF3AF318959D26F134A05476",
            "address": "166vcwRxrvckPcsa1gXjZ1EPw9uaz3qJsX",
            "value": 200000000,
            "value_fiat_now": 773.17,
            "value_disp": "2.00000000",
            "spending_tx_id": null,
            "spending_tx_pos": 0,
            "is_spent": 0
        },
        <SNIP_TXN_OUTPUTS>
    ]
}

Elements

Special Address elements

When a Transaction object is returned as part of an Address method the following extra elements are provided.

Also see

  1. Return to API
  2. Transaction
  3. Transaction Relay
  4. Transaction Decode
  5. Table of Contents