Back to explore

crypto

Bitcoin

Credits: 0.000001

Balance

POST /v1/bitcoin/Balance

Get the BTC balance of an address

Request

addressstring

address to lookup

Response

balancenumber

total BTC as satoshis

Request

Response

{
    "balance": 4134
}

Credits: 0.000001

Lookup

POST /v1/bitcoin/Lookup

Get details for a bitcoin address

Request

addressstring

bitcoin address

limitnumber

limit num transactions (max: 50)

offsetnumber

offset transactions

Response

addressstring

address requested

final_balancenumber

final balanace

hashstring

hash160

num_txnumber

number of transactions

num_unredeemednumber

number of unredeemed

total_receivednumber

total received

total_sentnumber

total sent

transactionsarray

list of transactions

Request

Response

{
    "address": "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
    "hash": "660d4ef3a743e3e696ad990364e555c271ad504b",
    "num_tx": "82",
    "num_unredeemed": "1",
    "total_received": "15443919556",
    "total_sent": "15441506556",
    "final_balance": "2413000",
    "transactions": [
        {
            "hash": "",
            "version": "1",
            "vin_sz": "3",
            "vout_sz": "2",
            "lock_time": "0",
            "size": "521",
            "relay": "0.0.0.0",
            "block_height": "643714",
            "block_index": "643714",
            "double_spend": false,
            "weight": "2084",
            "fee": "49068",
            "tx_index": "2389146460931387",
            "inputs": [
                {
                    "prev_out": {
                        "value": "752664",
                        "address": "1PAiaQe6KEaEtCQEpLLnLF57QyiuCp42H8",
                        "tx_index": "1539199749776760",
                        "n": "0",
                        "spent": true,
                        "script": "76a914f329377f8f4c6f9e4a532bfb99b06d110d5277ab88ac"
                    },
                    "script": "483045022100d990e9b0d35a76da1c5e2d719d20f"
                },
                {
                    "prev_out": {
                        "value": "832293",
                        "address": "1PAiaQe6KEaEtCQEpLLnLF57QyiuCp42H8",
                        "tx_index": "7675399417361352",
                        "n": "0",
                        "spent": true,
                        "script": "76a914f329377f8f4c6f9e4a532bfb99b06d110d5277ab88ac"
                    },
                    "script": "483045022100b9b72e676237bc72c2a66b273965"
                }
            ]
        }
    ]
}

Credits: 0.000001

Price

POST /v1/bitcoin/Price

Get the price of bitcoin

Request

symbolstring

symbol to use e.g BTCUSD

Response

pricenumber

The price of bitcoin

symbolstring

The symbol of pricing e.g BTCUSD

Request

Response

{
    "symbol": "USD",
    "price": 34682.74
}

Credits: 0.000001

Transaction

POST /v1/bitcoin/Transaction

Get transaction details by hash

Request

hashstring

the transaction hash

Response

block_heightnumber

block height

block_indexnumber

blck index

double_spendboolean

double spend

feenumber

fees

hashstring

transaction hash

inputsarray

inputs

lock_timenumber

lock time

outputsarray

outputs

relaystring

relay

sizenumber

transaction size

tx_indexnumber

tx index

versionnumber

the version

vin_sznumber

vin

vout_sznumber

vout

weightnumber

weight

Request

Response

{
    "hash": "f854aebae95150b379cc1187d848d58225f3c4157fe992bcd166f58bd5063449",
    "version": "1",
    "vin_sz": "4",
    "vout_sz": "1",
    "lock_time": "0",
    "size": "636",
    "relay": "0.0.0.0",
    "block_height": "293000",
    "block_index": "293000",
    "double_spend": false,
    "weight": "2544",
    "fee": "0",
    "tx_index": "2575609657130668",
    "inputs": [
        {
            "prev_out": {
                "value": "16450000",
                "address": "1GbMfYui17L5m6sAy3L3WXAtf1P32bxJXq",
                "tx_index": "1194267486326601",
                "n": "1",
                "spent": true,
                "script": "76a914ab094789b6da7f68e726f8e413529af6b7e810d988ac"
            },
            "script": "4830450220504b1ccfddf508422bdd8b0fcda2b1483e87aee1b486c0130bc29226bbce3b4e022100b5befcfcf0d3bf6ebf0ac2f93badb19e3042c7bed456c398e743b885e782466c012103b1feb40b99e8ff18469484a50e8b52cc478d5f4f773a341fbd920a4ceaedd4bf"
        },
        {
            "prev_out": {
                "value": "10061545",
                "address": "19YtzZdcfs1V2ZCgyRWo8i2wLT8ND1Tu4L",
                "tx_index": "7635024539865532",
                "n": "36",
                "spent": true,
                "script": "76a9145dc94d5d47e32cd8f6bd4966167ddf3e6cc76f8b88ac"
            },
            "script": "48304502210086de855e03008abcc49335c775973eab9ace2e16c3bfe6536218c1d029287fdb0220129ced657870af63f61cdd4b941996f9a243d1f306e774fc9c5f3dea0af8d581012103cbe40d1d790799a6494c07f844eaf05b4c6deab0b9dee2ee45c8decead12c5cd"
        },
        {
            "prev_out": {
                "value": "70000000000",
                "address": "1BNiazBzCxJacAKo2yL83Wq1VJ18AYzNHy",
                "tx_index": "4802948443627331",
                "n": "1",
                "spent": true,
                "script": "76a91471ccb50e6f8965f679af29fd1d94918ac50495b488ac"
            },
            "script": "48304502201f1eb5b79279258a91c00dee09dff5d6f6ece7c01639e66a6bdd579136ecddee022100d4a9ed93183bf338e51ba80bc1dd10ff03e9e159bd8ea59db3a5c10aa0ccd3400121022667ee37e180c1ad2fef6f16aa52ed27799f629364dfe51e144dd683317dbbd2"
        },
        {
            "prev_out": {
                "value": "293710000",
                "address": "13XXaBufpMvqRqLkyDty1AXqueZHVe6iyy",
                "tx_index": "3278393642739160",
                "n": "0",
                "spent": true,
                "script": "76a9141bb640356f9943ef958197672a6d008dad75a8eb88ac"
            },
            "script": "483045022100baac0c25867855f62592872cfac522d59fddd590a6cc290c8ad3bbe6b1151b5802204f2713c565ce6b00e5ea00e955d35e3b0878af5474feda35ebbb73232122d5480121023ed3b44ad598e3834e561efed205c221b7bc2e577e752eeaa66e85e60d0381c9"
        }
    ],
    "outputs": [
        {
            "hash": "",
            "value": "70320221545",
            "script": "76a914e6aad9d712c419ea8febf009a3f3bfdd8d222fac88ac",
            "address": "1N2f642sbgCMbNtXFajz9XDACDFnFzdXzV",
            "tx_index": "2575609657130668",
            "spent": true
        }
    ]
}