btc

Bitcoin (BTC)

Method: POST gettxout

dropdown

POST gettxout

Returns details about an unspent transaction output.

Parameters

txid - string, required

The transaction id

n - numeric, required

vout number

include_mempool - boolean, optional, default=true

Whether to include the mempool. Note that an unspent output that is spent in the mempool won't appear.

Request

curl --location --request POST 'https://btc.getblock.io' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "gettxout",
"params": ["451f2875c30e80c3c0bbdef1089425d9547ae85eb1300b43a343f1075b98312a", 1, null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "bestblock": "000000000000000000073a1a473e9929e49cb7a5384703189902424805eeb1e9",
        "coinbase": false,
        "confirmations": 1161,
        "scriptPubKey": {
            "addresses": [
                "1CaTxBcqzXj6mbp1p3GgYKPhdLb2bc1JKY"
            ],
            "asm": "OP_DUP OP_HASH160 7efd9bb8733ad150a9abc210073d29509e051a5c OP_EQUALVERIFY OP_CHECKSIG",
            "hex": "76a9147efd9bb8733ad150a9abc210073d29509e051a5c88ac",
            "reqSigs": 1,
            "type": "pubkeyhash"
        },
        "value": 0.00111004
    }
}
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

Products
For developers
Contact

Technical support:

support@getblock.io

General inquiries:

marketing@getblock.io

To contact Us:

Schedule a Call

2019 - 2021 GetBlock