ETH Blockbook

Status

Status page returns current status of Blockbook and connected backend.

Method: GET

https://eth-blockbook.nownodes.io/api/

Example response: 200

{
    "blockbook": {
        "coin": "Ethereum",
        "host": "b5d91bbbb7e8",
        "version": "devel",
        "gitCommit": "0277c2a8-dirty",
        "buildTime": "2024-04-03T14:52:21+00:00",
        "syncMode": true,
        "initialSync": false,
        "inSync": true,
        "bestHeight": 19732692,
        "lastBlockTime": "2024-04-25T13:31:01.662207852Z",
        "inSyncMempool": true,
        "lastMempoolTime": "2024-04-25T13:31:03.047488945Z",
        "mempoolSize": 271095,
        "decimals": 18,
        "dbSize": 349756011855,
        "hasFiatRates": true,
        "currentFiatRatesTime": "2024-04-25T13:30:09.709085892Z",
        "historicalFiatRatesTime": "2024-04-24T00:00:00Z",
        "about": "Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."
    },
    "backend": {
        "chain": "mainnet",
        "blocks": 19732692,
        "bestBlockHash": "0xfdf8123455a93f433fd8483625aa10f795b7aed634b10f8704e46518d33e35dc",
        "difficulty": "0",
        "version": "Geth/v1.13.15-stable-c5ba367e/linux-amd64/go1.21.6"
    }
}

Get block hash

Method: GET

https://eth-blockbook.nownodes.io/api/v2/block-index/<block height>

Example response: 200

{
    "blockHash": "0xfdf8123455a93f433fd8483625aa10f795b7aed634b10f8704e46518d33e35dc"
}

Get transaction

Get transaction returns "normalized" data about transaction, which has the same general structure for all supported coins. It does not return coin specific fields (for example information about Zcash shielded addresses).

Method: GET

https://eth-blockbook.nownodes.io/api/v2/tx/<txid>

Example response: 200

{
    "txid": "0x3cd41a2e0e63c7f3205a0b60b096c4cd8b389f70c5a711efaf1285cfae5c4fa8",
    "vin": [
        {
            "n": 0,
            "addresses": [
                "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5"
            ],
            "isAddress": true
        }
    ],
    "vout": [
        {
            "value": "48846509012459000",
            "n": 0,
            "addresses": [
                "0x48319f97E5Da1233c21c48b80097c0FB7a20Ff86"
            ],
            "isAddress": true
        }
    ],
    "blockHash": "0x324986948c10b2f7941909b3cd843ae9ce735f0e97bb2266933c810a95d7abe6",
    "blockHeight": 19732728,
    "confirmations": 2,
    "blockTime": 1714052291,
    "value": "48846509012459000",
    "fees": "303917468014050",
    "ethereumSpecific": {
        "status": 1,
        "nonce": 910887,
        "gasLimit": 23100,
        "gasUsed": 22110,
        "gasPrice": "13745701855",
        "data": "0x",
        "parsedData": {
            "methodId": "",
            "name": "Transfer"
        }
    }
}

Get transaction specific

Returns transaction data in the exact format as returned by backend, including all coin specific fields:

Method: GET

https://eth-blockbook.nownodes.io/api/v2/tx-specific/<txid>

Example response: 200

{
    "tx": {
        "nonce": "0x7",
        "gasPrice": "0x3335d1bbf",
        "gas": "0x58bd4",
        "to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
        "value": "0x853a0d2313c0000",
        "input": "0xe21fd0e90000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000069420e3a3aa9e17dea102bb3a9b3b73dcddb95280000000000000000000000006131b5fae19ea4f9d964eac0408e4408b66337b500000000000000000000000000000000000000000000000000000000662a616600000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004059361199000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000100000000000000000000000000d6b117076222d95a05032a99f10738103c60d64d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000069420e3a3aa9e17dea102bb3a9b3b73dcddb9528000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000853a0d2313c0000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a5b75b4980000000000000000009e0a10cae7ebf6000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000069420e3a3aa9e17dea102bb3a9b3b73dcddb95280000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000080ecd598deb331986f5c577b90371545536e0fcd0000000000000000000000000000000000000000000000000853a0d2313c0000000000000000000000000000000000000000000000000000009cc7020881eb8a00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000da2a82ed2c387d1751ccbaf999a80b65bdb269e0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fc7b22536f75726365223a2264657873637265656e6572222c22416d6f756e74496e555344223a22313836362e33373736393337363930303336222c22416d6f756e744f7574555344223a22313834332e39353539343638333730303535222c22526566657272616c223a22222c22466c616773223a302c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a22494242305059666f7164557369444b6a3339765954416c6f694a5a612b65514d7a4b733343376d2f6144575678394d54436b79686a3057584d36374971646e6f2b4d36772b6e6f6f735653766a482f564b4e43314c7a453554586a77366a37776b574d686e626275682b5446377155756a45516b41527a713835704a49595570687944466f374759764141522f4e716d626971506657416c46772b6d776a2b2f6f504d6e6a2f5434327851725848523543556949427a49374762505350596f384b64516c63347078465353712f4a4c69706b5842427632306a35516a66446379754463584758386d3147377a393665674a74726b656e594c4f645664756d67444c42416363384f6f2b394d74706b54695a68756f477657445a6f50394e75427234714d767351426d7931544d5231342f6855676837704b646d4d424d2f435a554f5379366a624d787a615277506443323333414c4c513d3d227d7d00000000",
        "hash": "0x2a212cedbf4a05733acb266f565df63fdd9a9950ec156ee9bc154ec7b44c10b6",
        "blockNumber": "0x12d18f8",
        "blockHash": "0x324986948c10b2f7941909b3cd843ae9ce735f0e97bb2266933c810a95d7abe6",
        "from": "0x80EcD598DEB331986F5C577B90371545536e0Fcd",
        "transactionIndex": "0xda"
    },
    "receipt": {
        "gasUsed": "0x42632",
        "status": "0x1",
        "logs": [
            {
                "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                "topics": [
                    "0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
                    "0x000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67"
                ],
                "data": "0x0000000000000000000000000000000000000000000000000853a0d2313c0000"
            },
            {
                "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                "topics": [
                    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                    "0x000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd67",
                    "0x000000000000000000000000d6b117076222d95a05032a99f10738103c60d64d"
                ],
                "data": "0x0000000000000000000000000000000000000000000000000853a0d2313c0000"
            },
...

Get address

Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/address/<address>[?page=<page>&pageSize=<size>&from=<block height>&to=<block height>&details=<basic|tokens|tokenBalances|txids|txs>&contract=<contract address>&secondary=usd]

Example response: 200

{
    "page": 1,
    "totalPages": 1,
    "itemsOnPage": 1000,
    "address": "0xDb55b29D3E8A32df6774354B0A683BA914B378f7",
    "balance": "191494620969017970",
    "unconfirmedBalance": "0",
    "unconfirmedTxs": 0,
    "txs": 16,
    "nonTokenTxs": 16,
    "txids": [
        "0x8dd217b87a0ff62f9b55ca9ee4332c6fa997487504a736b8821825883631e221",
        "0xc4323a0b4c0d78f5e4f8ffdc58c8133d90d960c6d4abd3910fe597b5e9f0207d",
        "0x58c6c4dc43a2e3033a02bd40899572cbd9a8cd79ec639f18910e601354d49038",
        "0x003c8bd8d8bba182ec023f2f9816c9acadf30742fda35574909c625d87add664",
        "0x7fb1b9b7fc6aae4c74494c3d0c5f55222a6f2028dc61fa5b5d356c1ed634f31e",
        "0x0efba4fd384394b69079f09dfb1dd770a9f69402b99fc894407da8eab28ca9dc",
        "0x37ffeb9f76aa4a4cb5e1e836ffdab0672cd168b24e25c2ffd32e4bfecef3024b",
        "0x4524cfa6b479bf6f2470b3720573693c9d2963a9d9bdd9907f52f7347d710658",
        "0x868d3e6fc84c6f533e2a29ab3a9b7a21f683a94e35812afb42d349d91d9c6f04",
        "0x39e7930cb444274a555f9c613b0b589fdbb0e30b5be2599fd037c453375ebfbf",
        "0xa8192d8b28fa123f8e221b95b2f4611519ae6c8beeb5eb75336007471c4a72ca",
        "0xe2ab58bc7135bd17e6f787b5b8f51ae72d46cf5f39e452ab0d88bb3f7f863412",
        "0x078461193545a3f25f4c11e8ca7651329348e1bc8a66fa73cbdce40c3d019bba",
        "0xb931b60333ae883f4cea95480eec65261de155ff83d2e927a5b2f77008dd809c",
        "0xc27189234fdc1b87b76b587dba17b75cea438aa0e0024ab0c26d7d78c54bc28c",
        "0xa142b029c037fef925ae05a1e4774180c4e7364859bd046df531ffec37019ad0"
    ],
    "nonce": "12",
    "tokens": [
        {
            "type": "ERC20",
            "name": "DeOrbit Network",
            "contract": "0xb8176941F1B5173DfdbadCc5d387829b27E98138",
            "transfers": 3,
            "symbol": "DEORBIT",
            "decimals": 18,
            "balance": "0"
        },
        {
            "type": "ERC20",
            "name": "Wrapped Ether",
            "contract": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "transfers": 2,
            "symbol": "WETH",
            "decimals": 18,
            "balance": "0"
        }
    ]
}

Get block

Returns information about block with transactions, subject to paging.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/block/<block height|block hash>

Example response: 200

{
    "page": 1,
    "totalPages": 1,
    "itemsOnPage": 1000,
    "hash": "0x324986948c10b2f7941909b3cd843ae9ce735f0e97bb2266933c810a95d7abe6",
    "previousBlockHash": "0xbb8f9b3b91a285d348cb1ebc399a3702ce062250f6310971a5c80a39f7c02d94",
    "nextBlockHash": "0xe7d73157b9b2b24f916aa20961ddfd857b949b59ec4cdeaf1242baeb29732143",
    "height": 19732728,
    "confirmations": 218,
    "size": 91321,
    "time": 1714052291,
    "version": 0,
    "merkleRoot": "",
    "nonce": "0x0000000000000000",
    "bits": "",
    "difficulty": "0x0",
    "txCount": 220,
    "txs": [
        {
            "txid": "0x4273c0c741117521eff31c3cc18182e1a41463f9947f52fff38697b5005b7c49",
            "vin": [
                {
                    "n": 0,
                    "addresses": [
                        "0x5C34E725CcA657F02C1D81fb16142F6F0067689b"
                    ],
                    "isAddress": true
                }
            ],
            "vout": [
                {
                    "value": "0",
                    "n": 0,
                    "addresses": [
                        "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD"
                    ],
                    "isAddress": true
                }
            ],
            "blockHash": "0x324986948c10b2f7941909b3cd843ae9ce735f0e97bb2266933c810a95d7abe6",
            "blockHeight": 19732728,
            "confirmations": 218,
            "blockTime": 1714052291,
            "value": "0",
            "fees": "18026640000000000",
            "tokenTransfers": [
                {
                    "type": "ERC20",
                    "from": "0x5C34E725CcA657F02C1D81fb16142F6F0067689b",
                    "to": "0x6EaF9427c0b42693E08d73198D8c7f5283A96545",
                    "contract": "0xe3a92DC82170Ad26d7cd7E77c467e01C32B42837",
                    "name": "pepper",
                    "symbol": "pepper",
                    "decimals": 18,
                    "value": "3039827586966645116221287559625"
                },
...

Send transaction

Sends new transaction to backend.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/sendtx/<hex tx data>

Example response: 200

{
  "result": "0xc4323a0b4c0d78f5e4f8ffdc58c8133d90d960c6d4abd3910fe597b5e9f0207d"
}

or in case of error

{
  "error": {
    "message": "error message"
  }
}

Tickers list

Returns a list of available currency rate tickers (secondary currencies) for the specified date, along with an actual data timestamp.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>

Example response: 200

{
    "ts": 1600732800,
    "available_currencies": [
        "aed",
        "ars",
        "aud",
        "bdt",
        "bhd",
        "bmd",
        "brl",
        "btc",
        "cad",
        "chf",
        "clp",
        "cny",
        "czk",
        "dkk",
        "eth",
        "eur",
        "gbp",
        "hkd",
        "huf",
        "idr",
        "ils",
        "inr",
        "jpy",
        "krw",
        "kwd",
        "lkr",
        "mmk",
        "mxn",
        "myr",
        "ngn",
        "nok",
        "nzd",
        "php",
        "pkr",
        "pln",
        "rub",
        "sar",
        "sek",
        "sgd",
        "thb",
        "try",
        "twd",
        "uah",
        "usd",
        "vef",
        "vnd",
        "zar"
    ]
}

Tickers

Returns currency rate for the specified currency and date. If the currency is not available for that specific timestamp, the next closest rate will be returned. All responses contain an actual rate timestamp.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/tickers/[?currency=<currency>&timestamp=<timestamp>]

Example response (no parameters): 200

{
    "ts": 1714054981,
    "rates": {
        "aed": 11513.8,
        "ars": 2739031,
        "aud": 4820.86,
        "bdt": 344056,
        "bhd": 1181.79,
        "bmd": 3134.8,
        "brl": 16190.61,
        "btc": 0.04917381,
        "cad": 4297.18,
        "chf": 2864.85,
        "clp": 2977871,
        "cny": 22716,
        "czk": 73670,
        "dkk": 21822,
        "eth": 1,
        "eur": 2926.03,
        "gbp": 2509.43,
        "hkd": 24545,
        "huf": 1149473,
        "idr": 50832864,
        "ils": 11913.22,
        "inr": 261107,
        "jpy": 487783,
        "krw": 4316036,
        "kwd": 965.33,
        "lkr": 931124,
        "mmk": 6583590,
        "mxn": 54073,
        "myr": 14976.5,
        "ngn": 3971853,
        "nok": 34459,
        "nzd": 5278.18,
        "php": 181249,
        "pkr": 873110,
        "pln": 12660.84,
        "rub": 289455,
        "sar": 11757.22,
        "sek": 34229,
        "sgd": 4265.82,
        "thb": 116220,
        "try": 102012,
        "twd": 102240,
        "uah": 124260,
        "usd": 3134.8,
        "vef": 313.89,
        "vnd": 79492820,
        "zar": 59732
    }
}

Example error response (e.g. rate unavailable, incorrect currency...):

{
  "ts":7980386400,
  "rates": {
    "usd": -1
  }
}

Balance history

Returns a balance history for the specified XPUB or address.

Method: GET

https://eth-blockbook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]

Example response: 200

[
    {
        "time": 1710075600,
        "txs": 2,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1710820800,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1710871200,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1711483200,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1711620000,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1711908000,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    }
]

Last updated