ETHW Blockbook
Status
Status page returns current status of Blockbook and connected backend.
Method: GET
https://ethw-blockbook.nownodes.io/api/
Example response: 200
{
"blockbook": {
"coin": "Ethereum PoW",
"host": "e5e92c5d7779",
"version": "devel",
"gitCommit": "89431f5",
"buildTime": "2022-09-16T11:21:44+00:00",
"syncMode": true,
"initialSync": false,
"inSync": true,
"bestHeight": 19350481,
"lastBlockTime": "2024-04-26T12:35:11.732473641Z",
"inSyncMempool": true,
"lastMempoolTime": "2024-04-26T12:34:31.521544479Z",
"mempoolSize": 1,
"decimals": 18,
"dbSize": 211382132328,
"about": "Blockbook - blockchain indexer for Trezor wallet https://trezor.io/. Do not use for any other purpose."
},
"backend": {
"chain": "mainnet",
"blocks": 19350481,
"bestBlockHash": "0x0821cb43c3d26d9a1e9db7baad52f3430602efe78c0f799f1d5d1b0d029ba9df",
"difficulty": "226290713125841",
"version": "Geth/v1.10.23-stable-f78489ad/linux-amd64/go1.19"
}
}
Get block hash
Method: GET
https://ethw-blockbook.nownodes.io/api/v2/block-index/<block height>
Example response: 200
{
"blockHash": "0x0821cb43c3d26d9a1e9db7baad52f3430602efe78c0f799f1d5d1b0d029ba9df"
}
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://ethw-blockbook.nownodes.io/api/v2/tx/<txid>
Example response: 200
{
"txid": "0xf934e3ed6af6111e96107f2c312902f4bd05e0f985748ab1e0b09929dbc718b6",
"vin": [
{
"n": 0,
"addresses": [
"0xc2d15b096FB7862C3471218BE21b455f361CBec8"
],
"isAddress": true
}
],
"vout": [
{
"value": "222534800000000000000000",
"n": 0,
"addresses": [
"0x34B68B86dfDB2BC111B20C9F88475218DcED1653"
],
"isAddress": true
}
],
"blockHash": "0x39a2e9668067495e0a749681d580eb659184487635a25f628a65213ccc64d659",
"blockHeight": 19349639,
"confirmations": 1002,
"blockTime": 1714123014,
"value": "222534800000000000000000",
"fees": "21000000147000",
"ethereumSpecific": {
"status": 1,
"nonce": 113,
"gasLimit": 210000,
"gasUsed": 21000,
"gasPrice": "1000000007",
"data": "0x"
}
}
Get transaction specific
Returns transaction data in the exact format as returned by backend, including all coin specific fields:
Method: GET
https://ethw-blockbook.nownodes.io/api/v2/tx-specific/<txid>
Example response: 200
{
"tx": {
"nonce": "0x71",
"gasPrice": "0x3b9aca07",
"gas": "0x33450",
"to": "0x34B68B86dfDB2BC111B20C9F88475218DcED1653",
"value": "0x2f1fa2bbf81925a80000",
"input": "0x",
"hash": "0xf934e3ed6af6111e96107f2c312902f4bd05e0f985748ab1e0b09929dbc718b6",
"blockNumber": "0x1274087",
"blockHash": "0x39a2e9668067495e0a749681d580eb659184487635a25f628a65213ccc64d659",
"from": "0xc2d15b096FB7862C3471218BE21b455f361CBec8",
"transactionIndex": "0x0"
},
"receipt": {
"gasUsed": "0x5208",
"status": "0x1",
"logs": []
}
}
Get address
Returns balances and transactions of an address. The returned transactions are sorted by block height, newest blocks first.
Method: GET
https://ethw-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": "0xc2d15b096FB7862C3471218BE21b455f361CBec8",
"balance": "244968843293816927018000",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 256,
"nonTokenTxs": 256,
"txids": [
"0xa2d5bccd1c09925e269f495534837456257cc5c7c2035bdf4ac32b4ded69b455",
"0xf934e3ed6af6111e96107f2c312902f4bd05e0f985748ab1e0b09929dbc718b6",
"0x6afa697f8ca9ee7e8ed1802d373b6b7614458a00b2f94171db71d1ccd0108bf1",
"0x575796851fc67073da43f6210be3f55654772555c2d236c87563f7a2310348ac",
"0xca720701e2507def55ba3f49ae90274c659ac4852eca165ddb70cf9dbf45f008",
"0xc9a046190d84eb3314c1499376ea38a83b8fc05794c7d6f0f10d4bd56da619c7",
"0x8568085707f37b302373f817cd5295951d0f7e51de6a8678c1cc1d8565b34678",
"0x5ddad71c63018a321415045c19e5ea974c0ba8881081d91e4a14fa3fd59bb516",
"0x93fdfa073eb55eda80d115a461213fc2ad952e449fb87069ce1b127fcb91ec20",
"0x9a61527dec2f6f3128088ca0a3da49408b9d5619dad0373c423492afa38a414b",
"0x74847abc8ec090f715db66a15f67873a9c11dbecd9d56a84cb39f24281da20d3",
"0x1b6df5c73320bdae08e4a8bcf294ae14ca45e0a7ae307c3f8bcb3a7c532b9eee",
"0x141b4273a641a2e1e6ee1177cfe6b54b4de1dc5b5a1eab04c6a76fcccfcf5db4",
"0x17ce49062482b6fd1fdd78193022c00de6988665cc20c5fe10d12fa019149f3f",
"0x4da17774bc5c0d3147e9cbc62db22b5b8c597b4d62969e64f6d7414f89dba2c0",
"0x383f9444b21b0dbad3665a886947a8ab039b0bb486c57e745bcb6e7644d447af",
"0x92d01cda8aa6f476c1aabbb9ad9d6c77725827926f51525b50b488f510c1494b",
"0xa1ca21560d4101fb8ebda9602dde7bd89517e0cddefc0aee0a868cfceccc111c",
"0x371b70e144136a0c19f2cda0ec6a531e027362f5d79943ddb852873dbb0d7dac",
"0xa279ff0b5345bda299114f0925fffb6fb2d69f0c7665973a8642cb3ca529d6f3",
"0x86ad36261d33060125dce44f1b3fa9a8d44597f050c694f7dec251406c71a4dc",
"0x0eccae7308e8c2954127a90be7a3f9084edcb185b6cefd0b8f341eceea5d8b97",
"0x17e1593307aab1d11c78b135835ac7bbb699804628adc6f9b7d6c18a4609ee32",
"0x2a3ead4f0427626da7dd740ca15ff0be3c6d8c6050349b07acb3f8ccd33f7e2b",
"0x777110e77d6e37266c4a30fdc5a1f781fd8dfcf09a57c779248c7e42c948acbb",
"0x4369335c3e6f51f73b91ff0e363af3841e57e0a681d6a1c305d51366d3201c3a",
"0xe7ea21d31504286b67a3932f878adec70b6accc0a0c8ec3591d2959dd9354b52",
"0xb0c4949bb165851727850e35efe3cd97dd4c157508b3cd68ec31966dd5debf46",
"0x45d17bb9d02fd63b2dd53672c2d1cbe69256f018a02a5528713b871eaa976af6",
"0x25bf32d3f83c04c853d46b4d43a8c99024f6a91a67258967c2a98cad671aa4d2",
"0xe2fbea1c009488cb8f46d1e9652aff7efdf803a06627101aa1ed595a02342cf8",
"0x205fa660e12cd48d69a8acdf3e2315912537601004dea2e47514f826b8484be1",
"0x698fbd9f6baceca4129fca9eb8c0a9017adb1e4371a5faa066353afdca10a68a",
"0x2df0e5e5a58b65dab4c2524954389889515d5fa03f829b66a7ae67e3810c221d",
"0x0dd8d62bd9061d2325be4033f469cce2f4f31af69a202442209af39fc3d49e5f",
"0x88a048c691efb9d073f2c37d786e6b2e0f81c42d7ed978ecc34c4fc0888a5007",
"0x42f4be8d1b661d06353048305eb0907a637a872a9b8c856fb59efbfb1f0ad493",
"0x74ab9c1b08cb7cce61af815a2d0eee588a5bc222a2855ccd8fc0058c823c6ad5",
...
Get block
Returns information about block with transactions, subject to paging.
Method: GET
https://ethw-blockbook.nownodes.io/api/v2/block/<block height|block hash>
Example response: 200
{
"page": 1,
"totalPages": 1,
"itemsOnPage": 1000,
"hash": "0x39a2e9668067495e0a749681d580eb659184487635a25f628a65213ccc64d659",
"previousBlockHash": "0x8dfa596f1bbf386b08bf96a2f800d29d9479dd331ace27f9ba21a5f831300846",
"nextBlockHash": "0x8f06cdd447cff1e847a11937d610784a019a468564a7ae19c81bf1a7c58b6253",
"height": 19349639,
"confirmations": 1015,
"size": 666,
"time": 1714123014,
"version": 0,
"merkleRoot": "",
"nonce": "0x18df2748014c76a5",
"bits": "",
"difficulty": "0xd6a3b4856a8b",
"txCount": 1,
"txs": [
{
"txid": "0xf934e3ed6af6111e96107f2c312902f4bd05e0f985748ab1e0b09929dbc718b6",
"vin": [
{
"n": 0,
"addresses": [
"0xc2d15b096FB7862C3471218BE21b455f361CBec8"
],
"isAddress": true
}
],
"vout": [
{
"value": "222534800000000000000000",
"n": 0,
"addresses": [
"0x34B68B86dfDB2BC111B20C9F88475218DcED1653"
],
"isAddress": true
}
],
"blockHash": "0x39a2e9668067495e0a749681d580eb659184487635a25f628a65213ccc64d659",
"blockHeight": 19349639,
"confirmations": 1015,
"blockTime": 1714123014,
"value": "222534800000000000000000",
"fees": "21000000147000",
"ethereumSpecific": {
"status": 1,
"nonce": 113,
"gasLimit": 210000,
"gasUsed": 21000,
"gasPrice": "1000000007",
"data": "0x"
}
}
]
}
Send transaction
Sends new transaction to backend.
Method: GET
https://ethw-blockbook.nownodes.io/api/v2/sendtx/<hex tx data>
Example response: 200
{
"result": "0xf934e3ed6af6111e96107f2c312902f4bd05e0f985748ab1e0b09929dbc718b6"
}
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://ethw-blockbook.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>
Example response: 200
{
"error": "No tickers found for date 2020-09-22 00:00:00 +0000 UTC."
}
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://ethw-blockbook.nownodes.io/api/v2/tickers/[?currency=<currency>×tamp=<timestamp>]
Example response (no parameters): 200
{
"error": "No tickers found!"
}
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://ethw-blockbook.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]
Example response: 200
[
{
"time": 1702465200,
"txs": 2,
"received": "30000000000000000000",
"sent": "5002030811405441000",
"sentToSelf": "0"
},
{
"time": 1703775600,
"txs": 1,
"received": "410166184300000000000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1703822400,
"txs": 1,
"received": "13996765900000000000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1703898000,
"txs": 1,
"received": "4367662300000000000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1703984400,
"txs": 1,
"received": "21687548000000000000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1704459600,
"txs": 1,
"received": "8662004800000000000000",
"sent": "0",
"sentToSelf": "0"
},
{
"time": 1704502800,
"txs": 1,
"received": "415141300000000000000",
"sent": "0",
"sentToSelf": "0"
},
...
Last updated