ETH-sepolia Blockbook

Status

Status page returns current status of Blockbook and connected backend.

Method: GET

https://ethbook-sepolia.nownodes.io/api/

Example response: 200

{
    "blockbook": {
        "coin": "Ethereum Testnet Sepolia",
        "host": "0b9ec5d1299d",
        "version": "devel",
        "gitCommit": "1d95413f",
        "buildTime": "2024-02-19T09:03:59+00:00",
        "syncMode": true,
        "initialSync": false,
        "inSync": true,
        "bestHeight": 5780808,
        "lastBlockTime": "2024-04-26T09:53:25.41914282Z",
        "inSyncMempool": true,
        "lastMempoolTime": "2024-04-26T09:53:32.819569806Z",
        "mempoolSize": 10059,
        "decimals": 18,
        "dbSize": 141031460226,
        "about": "Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."
    },
    "backend": {
        "chain": "testnet 11155111",
        "blocks": 5780808,
        "bestBlockHash": "0xfe37909d1c077f3d2ad392047b4610f2424d55633efbb9bc8cd4535e1d244938",
        "difficulty": "0",
        "version": "Geth/v1.13.14-stable-2bd6bd01/linux-amd64/go1.21.6"
    }
}

Get block hash

Method: GET

https://ethbook-sepolia.nownodes.io/api/v2/block-index/<block height>

Example response: 200

{
    "blockHash": "0xfe37909d1c077f3d2ad392047b4610f2424d55633efbb9bc8cd4535e1d244938"
}

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://ethbook-sepolia.nownodes.io/api/v2/tx/<txid>

Example response: 200

{
    "txid": "0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369",
    "vin": [
        {
            "n": 0,
            "addresses": [
                "0x184ba627DB853244c9f17f3Cb4378cB8B39bf147"
            ],
            "isAddress": true
        }
    ],
    "vout": [
        {
            "value": "23456712686945189",
            "n": 0,
            "addresses": [
                "0x0c06B6D4EC451987e8C0B772ffcf7F080c46447A"
            ],
            "isAddress": true
        }
    ],
    "blockHash": "0x671613acdb0ac1168b5dc86ea1085380caf8ad00b2fbd2924bbc522f3504188f",
    "blockHeight": 5780831,
    "confirmations": 4,
    "blockTime": 1714125480,
    "value": "23456712686945189",
    "fees": "12300606633000",
    "ethereumSpecific": {
        "status": 1,
        "nonce": 13059,
        "gasLimit": 99000,
        "gasUsed": 21000,
        "gasPrice": "585743173",
        "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://ethbook-sepolia.nownodes.io/api/v2/tx-specific/<txid>

Example response: 200

{
    "tx": {
        "nonce": "0x3303",
        "gasPrice": "0x22e9bb45",
        "gas": "0x182b8",
        "to": "0x0c06B6D4EC451987e8C0B772ffcf7F080c46447A",
        "value": "0x5355c1834dc3a5",
        "input": "0x",
        "hash": "0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369",
        "blockNumber": "0x58355f",
        "blockHash": "0x671613acdb0ac1168b5dc86ea1085380caf8ad00b2fbd2924bbc522f3504188f",
        "from": "0x184ba627DB853244c9f17f3Cb4378cB8B39bf147",
        "transactionIndex": "0x65"
    },
    "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://ethbook-sepolia.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": 5,
    "itemsOnPage": 1000,
    "address": "0x0c06B6D4EC451987e8C0B772ffcf7F080c46447A",
    "balance": "833377981620272298053",
    "unconfirmedBalance": "0",
    "unconfirmedTxs": 0,
    "txs": 4125,
    "nonTokenTxs": 4047,
    "txids": [
        "0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369",
        "0x3c714c0420b431dfb87fc9d571546db1a6d88809f0f706f51c484c73e8a966f9",
        "0xaca2e56ae91d375bee9b1d5b1210dbe216b117e91997d16afb635dafddd227d5",
        "0x0b098564ff9642782df5f5f7117c716ee81ecab7beeb4ae601d46f88519ab07b",
        "0xc8b6bb88d2adb6f458916a9e9dbf482b64257b1e8c1d27e68fe0c9784e0dbb01",
        "0x9289b9585cdd4ee3ce961b44d64c078363881331e58eaca60a26a05aa5de9c43",
        "0xdcb97115345eee4041410bce3130f45fd460e07e1fa36c1f80e2b0e3e87277aa",
        "0xd37f6b9480d69bd223d9f0949847a7fa86da15ab844965316a1b33184fc01ff7",
        "0xd3c651bdbfec3f8d7ad4c4616be244825c9dad8f45f526c7c26e4e1f05e93a7d",
        "0xbd552d7079585c61df2c2554e541211eb180a4ca1bce3635b3bef71a47db2f34",
        "0xcb9c33ea6100fe83cfde8e5899001e771aba5d898d7fa143e3a5e22dba7dc9da",
        "0x5d4918f1ea098c4e23a1d6bb3c298b172f1ea3a09de1e25b3b9974c9e79f5da1",
        "0xe074238595fa445192ace7c1d4ab25d17dff5d0d26f16c59b1b43d32c5591288",
        "0xca98f52083c61de37a02b490cff0d5ecdcf33986a6c7c02988a9f3685d82dabf",
        "0x59d786612540d0f272df58ae3b26e4fe07a5134d6e574aa175903e51213d221b",
        "0x70ad608ed75ead81be313989a56070f4f7a764fad509c5ff716b35f33b42fed3",
        "0xac54c04bf4dec2a5fdb54aa279ac311a8eaef30e07b743638fb4f00d76092391",
        "0xca6909165a433f0139f632eb728220b277e48206bfd4c68d9e548ad265dfa2f1",
        "0x6bd23b1ea7ea1e7f8d51b09df044982db4597149462650fedf93f12439825383",
        "0x53bfc280b022d5b70a7ae98abf558fc374dde779e47c6931a916bf6444c434e1",
        "0x98e09e65380a5fc181499709934e8c8d7e0bce83969e12acf213351c4b622b80",
        "0xd697814788c029cdb94ff2b71c44609a10ad38655b8881139432f62891f90c49",
        "0xefd320f7f2cec6fc3dcdb3c6aac8a4dd1709cd17ea7e71d3a21d6966fff84fa4",
        "0x1a557980cfa6fddc0b3a4a42d0494aaf30db3a63f961155eeee9289d93ee9dda",
        "0xaf6429027337e56b112c4381a17273fc0e00a831aaf12956cf1532f16a7088ed",
        "0x5879167fbb936f979775d9ee4b5eb476339f4d08994c079ab5cf3b8ca3019817",
        "0x784b400e3f3b1ee8013e56e7682e20848a830c016ca015a4714bab7a553e06dd",
        "0xfb99724a394a0c85ddd8ba9b84b0f8d31fe2b2d28dc1e6e6c3a6220ee5fe1cfa",
        "0x4f77b72fe9515afee14522b2ae19406ca7b293c26e8a42880775aa23d2216cce",
        "0x35944566d274896f7c1cb90068af976f635c94471358bfdc465f42da1d1eda33",
        "0x38a3bc63e8d1381209dd0cf0ccc852e31f569a97e6055f52730f47a98c7270e4",
        "0x31530e6235f6daaec7fec44c91a015c7a537aabbfddcb3556235dac8a8bd6200",
        "0x174ab8da4845ccfdb6b4aacea9e6f676c8f532263e75ed680c521c2a4886c4ed",
        "0xc9902a2627e6e48b9b197f550d83d9df5b5c10179267f1f95eefcdaa960d243c",
        "0xe1493930b34978e20e755fc1e0cec0503491eb514477b5ed294cf69eddf8614a",
        "0x6543be33b05bfdc2442a2480dfab9fcbb99c17259be8afa95af99c154e261c24",
        "0xeebc964b2f594f6ac4d191f8cba5664c92e1204544799714623cdf5fbb9441e1",
        "0xc5e7be9d298b3bcabde9399a55f75c1120232827e37b816113790d47fe1d431e",
...

Get block

Returns information about block with transactions, subject to paging.

Method: GET

https://ethbook-sepolia.nownodes.io/api/v2/block/<block height|block hash>

Example response: 200

{
    "page": 1,
    "totalPages": 1,
    "itemsOnPage": 1000,
    "hash": "0x671613acdb0ac1168b5dc86ea1085380caf8ad00b2fbd2924bbc522f3504188f",
    "previousBlockHash": "0xc05d29e8462b3186972a5b9d5de1cad9951a8bb201c3860bc23b160de7092f96",
    "nextBlockHash": "0x58eb2a0aaa5f946a21eed1099cd5d3160f454b8ca5aeaa709d7044967bfd92ee",
    "height": 5780831,
    "confirmations": 46,
    "size": 150934,
    "time": 1714125480,
    "version": 0,
    "merkleRoot": "",
    "nonce": "0x0000000000000000",
    "bits": "",
    "difficulty": "0x0",
    "txCount": 102,
    "txs": [
        {
            "txid": "0x45e770b174e63e5ed823ecab83bf8875ca613ec3c975cc978ff57c0e7cd63885",
            "vin": [
                {
                    "n": 0,
                    "addresses": [
                        "0xDd160e40fB3016887C43BC51B7EEf4071e4caA02"
                    ],
                    "isAddress": true
                }
            ],
            "vout": [
                {
                    "value": "0",
                    "n": 0,
                    "addresses": [
                        "0xe3B067ed11ab3692F4C67d6AEe75f8F014a78D68"
                    ],
                    "isAddress": true
                }
            ],
            "blockHash": "0x671613acdb0ac1168b5dc86ea1085380caf8ad00b2fbd2924bbc522f3504188f",
            "blockHeight": 5780831,
            "confirmations": 46,
            "blockTime": 1714125480,
            "value": "0",
            "fees": "3239760001133916",
            "tokenTransfers": [
                {
                    "type": "ERC20",
                    "from": "0xDd160e40fB3016887C43BC51B7EEf4071e4caA02",
                    "to": "0x77F1a0aB2B0AF8343640490264C65bE6581bdE3c",
                    "contract": "0xB72bC8971D5e595776592E8290bE6F31937097c6",
                    "name": "Tether USD",
                    "symbol": "USDT",
                    "decimals": 6,
                    "value": "400000"
                },
...

Send transaction

Sends new transaction to backend.

Method: GET

https://ethbook-sepolia.nownodes.io/api/v2/sendtx/<hex tx data>

Example response: 200

{
  "result": "0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369"
}

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://ethbook-sepolia.nownodes.io/api/v2/tickers-list/?timestamp=<timestamp>

Example response: 200

{
    "error": "No tickers found"
}

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://ethbook-sepolia.nownodes.io/api/v2/tickers/[?currency=<currency>&timestamp=<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://ethbook-sepolia.nownodes.io/api/v2/balancehistory/<XPUB|address>?from=<dateFrom>&to=<dateTo>[&fiatcurrency=<currency>&groupBy=<groupBySeconds>]

Example response: 200

[
    {
        "time": 1675166400,
        "txs": 1,
        "received": "75000000000000000",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1682355600,
        "txs": 1,
        "received": "100000000000000000",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1686787200,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1689156000,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1689634800,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1690693200,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
    {
        "time": 1708758000,
        "txs": 1,
        "received": "0",
        "sent": "0",
        "sentToSelf": "0"
    },
...

Last updated