BASE Blockbook WSS

Get Info

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"2","method":"getInfo","params":{}}	

Response: 200

Copy

{
    "id": "2",
    "data": {
        "name": "Base",
        "shortcut": "ETH",
        "network": "ETH",
        "decimals": 18,
        "version": "0.4.0",
        "bestHeight": 26242796,
        "bestHash": "0x09318e24f0a9a76f849063d3f047b2108b846258af36357816213e838985dc1a",
        "block0Hash": "0xf712aa9241cc24369b143cf6dce85f0902a9731e70d66818a3a5845b296c73dd",
        "testnet": false,
        "backend": {}
    }
}

Ping

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"3","method":"ping","params":{}}	

Response: 200

Copy

{
    "id": "3",
    "data": {}
}

Get block hash

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"4","method":"getBlockHash","params":{"height":1000000}}

Response: 200

Copy

{
    "id": "4",
    "data": {
        "hash": "0x727e0c1aa6f4fa1673193d992018230a54a30bd404219b91a1f96ca217970a96"
    }
}

Get account info

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{
  "id": "5",
  "method": "getAccountInfo",
  "params": {
    "descriptor": "0xba98d6a5ac827632e3457de7512d211e4ff7e8bd",
    "details": "basic",
    "tokens": "derived",
    "page": null,
    "pageSize": 10,
    "from": null,
    "to": null,
    "contractFilter": ""
  }
}	

Response: 200

Copy

{
    "id": "5",
    "data": {
        "address": "0x7B5FdBf6710006B1e5A8eD86e41e8AAe4810b305",
        "balance": "4811074226960",
        "unconfirmedBalance": "0",
        "unconfirmedTxs": 0,
        "txs": 6,
        "nonTokenTxs": 3,
        "nonce": "5"
    }
}

Get balance history

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{
    "id": "7",
    "data": [
        {
            "time": 1736802000,
            "txs": 1,
            "received": "0",
            "sent": "0",
            "sentToSelf": "0",
            "rates": {
                "aed": 11352.998,
                "ars": 3263929.2,
                "aud": 4927.756,
                "bch": 9.129773,
                "bdt": 375879.47,
                "bhd": 1164.9298,
                "bits": 31543.648,
                "bmd": 3090.943,
                "bnb": 4.836708,
                "brl": 17972,
                "btc": 0.03154421,
                "cad": 4433.9644,
                "chf": 2819.2192,
                "clp": 2973150.5,
                "cny": 22586.164,
                "czk": 75205.91,
...

Response: 200

Copy

{
    "id": "7",
    "data": []
}

Get transaction

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"9","method":"getTransaction","params":{"txid":"0x01a246edf989e422bfab34f63bfe521aef1cd429058184e88741d94bda3f7760"}}	

Response: 200

Copy

{
    "id": "9",
    "data": {
        "txid": "0x01a246edf989e422bfab34f63bfe521aef1cd429058184e88741d94bda3f7760",
        "vin": [
            {
                "n": 0,
                "addresses": [
                    "0x7B5FdBf6710006B1e5A8eD86e41e8AAe4810b305"
                ],
                "isAddress": true
            }
        ],
        "vout": [
            {
                "value": "34994645158724335",
                "n": 0,
                "addresses": [
                    "0x4945cE2d1B5BD904CAc839b7FDAbAfd19Cab982b"
                ],
                "isAddress": true
            }
        ],
        "blockHash": "0x4e813ffa582fce48793f88842b90b9b5576fde756cc7db778f1d2c50c6544ff0",
        "blockHeight": 26242039,
        "confirmations": 7570,
        "blockTime": 1739273425,
        "value": "34994645158724335",
        "fees": "711487757040",
        "ethereumSpecific": {
            "status": 1,
            "nonce": 4,
            "gasLimit": 21000,
            "gasUsed": 21000,
            "gasPrice": "19911149",
            "l1Fee": 293353628040,
            "l1GasPrice": "2690999992",
            "l1GasUsed": 1600,
            "data": "0x",
            "parsedData": {
                "methodId": "",
                "name": "Transfer"
            }
        }
    }
}

Get transaction specific

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"10","method":"getTransactionSpecific","params":{"txid":"0xdc18ac078e20f5ce8ee72004c89400ffa4bee67e8aa292dce69f5978dce84532"}}	

Response: 200

Copy

{
    "id": "10",
    "data": {
        "tx": {
            "nonce": "0x4",
            "gasPrice": "0x12fd1ed",
            "gas": "0x5208",
            "to": "0x4945cE2d1B5BD904CAc839b7FDAbAfd19Cab982b",
            "value": "0x7c5371c1ba02ef",
            "input": "0x",
            "hash": "0x01a246edf989e422bfab34f63bfe521aef1cd429058184e88741d94bda3f7760",
            "blockNumber": "0x1906bf7",
            "blockHash": "0x4e813ffa582fce48793f88842b90b9b5576fde756cc7db778f1d2c50c6544ff0",
            "from": "0x7B5FdBf6710006B1e5A8eD86e41e8AAe4810b305",
            "transactionIndex": "0x87"
        },
        "receipt": {
            "gasUsed": "0x5208",
            "status": "0x1",
            "logs": [],
            "l1Fee": "0x444d3d2188",
            "l1GasPrice": "0xa06566b8",
            "l1GasUsed": "0x640"
        }
    }
}

Estimate fee

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"11","method":"estimateFee","params":{"blocks":[2,5,10,20]}}	

Response: 200

Copy

{
    "id": "11",
    "data": [
        {
            "feePerTx": "1121236762392",
            "feePerUnit": "20843544",
            "feeLimit": "53793"
        },
        {
            "feePerTx": "60314689159352856",
            "feePerUnit": "1121236762392",
            "feeLimit": "53793"
        },
        {
            "feePerTx": "3244508073949068182808",
            "feePerUnit": "60314689159352856",
            "feeLimit": "53793"
        },
        {
            "feePerTx": "174531822821942224757790744",
            "feePerUnit": "3244508073949068182808",
            "feeLimit": "53793"
        }
    ]
}

Send transaction

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"1","method":"sendTransaction","params":{"hex":"010000000001019d64f0c72a0d206001decbffaa722eb1044534c74eee7a5df8318e42a4323ec10000000017160014550da1f5d25a9dae2eafd6902b4194c4c6500af6ffffffff02809698000000000017a914cd668d781ece600efa4b2404dc91fd26b8b8aed8870553d7360000000017a914246655bdbd54c7e477d0ea2375e86e0db2b8f80a8702473044022076aba4ad559616905fa51d4ddd357fc1fdb428d40cb388e042cdd1da4a1b7357022011916f90c712ead9a66d5f058252efd280439ad8956a967e95d437d246710bc9012102a80a5964c5612bb769ef73147b2cf3c149bc0fd4ecb02f8097629c94ab013ffd00000000"}}		

Response: 200

Copy

{
    "id": "1",
    "data": {
        "error": {
            "message": "invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type hexutil.Bytes"
        }
    }
}

Get fiat rates for timestamps

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"13","method":"getFiatRatesForTimestamps","params":{"timestamps":[1575288000,1575550800],"currencies":[""]}}	

Response: 200

Copy

{
    "id": "13",
    "data": {
        "tickers": [
            {
                "ts": 1739274545,
                "rates": {
                    "aed": 9926.03,
                    "ars": 2853796,
                    "aud": 4307.81,
                    "bch": 7.970156,
                    "bdt": 328633,
                    "bhd": 1018.68,
                    "bits": 27553,
                    "bmd": 2702.43,
                    "bnb": 4.2128,
                    "brl": 15713.02,
                    "btc": 0.02755293,
                    "cad": 3876,
                    "chf": 2466.54,
                    "clp": 2603658,
                    "cny": 19747.21,
                    "czk": 65744,
                    "dkk": 19537.67,
                    "dot": 532.995,
                    "eos": 4179,
                    "eth": 1,
                    "eur": 2619.5,
                    "gbp": 2186.25,
                    "gel": 7526.27,
                    "hkd": 21060,
                    "huf": 1057384,
                    "idr": 44268130,
                    "ils": 9701.38,
                    "inr": 234594,
                    "jpy": 411530,
                    "krw": 3928613,
                    "kwd": 834.75,
                    "link": 138.982,
                    "lkr": 803576,
                    "ltc": 21.09856,
                    "mmk": 5669702,
                    "mxn": 55746,
                    "myr": 12079.87,
                    "ngn": 4061755,
                    "nok": 30343,
                    "nzd": 4789.34,
                    "php": 157257,
                    "pkr": 755685,
                    "pln": 10942.42,
                    "rub": 259646,
                    "sar": 10134.38,
                    "sats": 2755293,
                    "sek": 29508,
                    "sgd": 3664.07,
                    "thb": 92077,
                    "try": 97434,
                    "twd": 88738,
                    "uah": 112658,
                    "usd": 2702.43,
                    "vef": 270.59,
                    "vnd": 69018824,
                    "xag": 85.11,
                    "xau": 0.93015,
                    "xdr": 2072.85,
                    "xlm": 8120,
                    "xrp": 1086,
                    "yfi": 0.45367306,
                    "zar": 49908
                }
            },
            {
                "ts": 1739274545,
                "rates": {
                    "aed": 9926.03,
                    "ars": 2853796,
                    "aud": 4307.81,
                    "bch": 7.970156,
                    "bdt": 328633,
                    "bhd": 1018.68,
                    "bits": 27553,
                    "bmd": 2702.43,
                    "bnb": 4.2128,
                    "brl": 15713.02,
                    "btc": 0.02755293,
                    "cad": 3876,
                    "chf": 2466.54,
                    "clp": 2603658,
                    "cny": 19747.21,
                    "czk": 65744,
                    "dkk": 19537.67,
                    "dot": 532.995,
                    "eos": 4179,
                    "eth": 1,
                    "eur": 2619.5,
                    "gbp": 2186.25,
                    "gel": 7526.27,
                    "hkd": 21060,
                    "huf": 1057384,
                    "idr": 44268130,
                    "ils": 9701.38,
                    "inr": 234594,
                    "jpy": 411530,
                    "krw": 3928613,
                    "kwd": 834.75,
                    "link": 138.982,
                    "lkr": 803576,
                    "ltc": 21.09856,
                    "mmk": 5669702,
                    "mxn": 55746,
                    "myr": 12079.87,
                    "ngn": 4061755,
                    "nok": 30343,
                    "nzd": 4789.34,
                    "php": 157257,
                    "pkr": 755685,
                    "pln": 10942.42,
                    "rub": 259646,
                    "sar": 10134.38,
                    "sats": 2755293,
                    "sek": 29508,
                    "sgd": 3664.07,
                    "thb": 92077,
                    "try": 97434,
                    "twd": 88738,
                    "uah": 112658,
                    "usd": 2702.43,
                    "vef": 270.59,
                    "vnd": 69018824,
                    "xag": 85.11,
                    "xau": 0.93015,
                    "xdr": 2072.85,
                    "xlm": 8120,
                    "xrp": 1086,
                    "yfi": 0.45367306,
                    "zar": 49908
                }
            }
        ]
    }
}

Get fiat rates for tickers list

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1676591569}}

Response: 200

Copy

{
    "id": "15",
    "data": {
        "ts": 1739274545,
        "available_currencies": [
            "aed",
            "ars",
            "aud",
            "bch",
            "bdt",
            "bhd",
            "bits",
            "bmd",
            "bnb",
            "brl",
            "btc",
            "cad",
            "chf",
            "clp",
            "cny",
            "czk",
            "dkk",
            "dot",
            "eos",
            "eth",
            "eur",
            "gbp",
            "gel",
            "hkd",
            "huf",
            "idr",
            "ils",
            "inr",
            "jpy",
            "krw",
            "kwd",
            "link",
            "lkr",
            "ltc",
            "mmk",
            "mxn",
            "myr",
            "ngn",
            "nok",
            "nzd",
            "php",
            "pkr",
            "pln",
            "rub",
            "sar",
            "sats",
            "sek",
            "sgd",
            "thb",
            "try",
            "twd",
            "uah",
            "usd",
            "vef",
            "vnd",
            "xag",
            "xau",
            "xdr",
            "xlm",
            "xrp",
            "yfi",
            "zar"
        ]
    }
}

Get current fiat rates

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"6","method":"getCurrentFiatRates","params":{"currencies":[""]}}	

Response: 200

Copy

{
    "id": "6",
    "data": {
        "ts": 1739274545,
        "rates": {
            "aed": 9926.03,
            "ars": 2853796,
            "aud": 4307.81,
            "bch": 7.970156,
            "bdt": 328633,
            "bhd": 1018.68,
            "bits": 27553,
            "bmd": 2702.43,
            "bnb": 4.2128,
            "brl": 15713.02,
            "btc": 0.02755293,
            "cad": 3876,
            "chf": 2466.54,
            "clp": 2603658,
            "cny": 19747.21,
            "czk": 65744,
            "dkk": 19537.67,
            "dot": 532.995,
            "eos": 4179,
            "eth": 1,
            "eur": 2619.5,
            "gbp": 2186.25,
            "gel": 7526.27,
            "hkd": 21060,
            "huf": 1057384,
            "idr": 44268130,
            "ils": 9701.38,
            "inr": 234594,
            "jpy": 411530,
            "krw": 3928613,
            "kwd": 834.75,
            "link": 138.982,
            "lkr": 803576,
            "ltc": 21.09856,
            "mmk": 5669702,
            "mxn": 55746,
            "myr": 12079.87,
            "ngn": 4061755,
            "nok": 30343,
            "nzd": 4789.34,
            "php": 157257,
            "pkr": 755685,
            "pln": 10942.42,
            "rub": 259646,
            "sar": 10134.38,
            "sats": 2755293,
            "sek": 29508,
            "sgd": 3664.07,
            "thb": 92077,
            "try": 97434,
            "twd": 88738,
            "uah": 112658,
            "usd": 2702.43,
            "vef": 270.59,
            "vnd": 69018824,
            "xag": 85.11,
            "xau": 0.93015,
            "xdr": 2072.85,
            "xlm": 8120,
            "xrp": 1086,
            "yfi": 0.45367306,
            "zar": 49908
        }
    }
}

Subscribe new block

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"16","method":"subscribeNewBlock","params":{}}

Response: 200

Copy

{
    "id": "17",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new block

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"16","method":"unsubscribeNewBlock","params":{}}	

Response: 200

Copy

{
    "id": "16",
    "data": {
        "subscribed": false
    }
}

Subscribe new transaction

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"17","method":"subscribeNewTransaction","params":{}}	

Response: 200

Copy

{
    "id": "17",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new transaction

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"17","method":"unsubscribeNewTransaction","params":{}}	

Response: 200

Copy

{
    "id": "17",
    "data": {
        "subscribed": false
    }
}

Subscribe address

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"18","method":"subscribeAddresses","params":{"addresses":["0xba98d6a5ac827632e3457de7512d211e4ff7e8bd","0x73d0385f4d8e00c5e6504c6030f47bf6212736a8"]}}	

Response: 200

Copy

{
    "id": "18",
    "data": {
        "subscribed": true
    }
}

Unsubscribe address

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"18","method":"unsubscribeAddresses","params":{}}		

Response: 200

Copy

{
    "id": "18",
    "data": {
        "subscribed": false
    }
}

Subscribe new fiat rates

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"19","method":"subscribeFiatRates","params":{"currency":"usd"}}		

Response: 200

Copy

{
    "id": "19",
    "data": {
        "subscribed": true
    }
}

Unsubscribe new fiat rates

Copy

wss://base-blockbook.nownodes.io/wss/{{api_key}}

Body

Copy

{"id":"19","method":"unsubscribeFiatRates","params":{}}		

Response: 200

Copy

{
    "id": "19",
    "data": {
        "subscribed": false
    }
}

Last updated