ETH-sepolia Blockbook WSS
Get Info
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"2","method":"getInfo","params":{}}
Response: 200
{
"id": "2",
"data": {
"name": "Ethereum Testnet Sepolia",
"shortcut": "tSEP",
"decimals": 18,
"version": "devel",
"bestHeight": 5781115,
"bestHash": "0x1dc902adb9ae9dde052f1bc9268ece188aa79aee26ff235fbe3e7793598b8ffc",
"block0Hash": "0x25a5cc106eea7138acab33231d7160d69cb777ee0c2c553fcddf5138993e6dd9",
"testnet": true,
"backend": {
"version": "Geth/v1.13.14-stable-2bd6bd01/linux-amd64/go1.21.6"
}
}
}
Ping
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"3","method":"ping","params":{}}
Response: 200
{
"id": "3",
"data": {}
}
Get block hash
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"4","method":"getBlockHash","params":{"height":1000000}}
Response: 200
{
"id": "4",
"data": {
"hash": "0xaad11ee5a3b4b037a4cef3afd30398bf8b0f73e702cf86f86e3f4eaa9d7d39a2"
}
}
Get account info
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{
"id": "5",
"method": "getAccountInfo",
"params": {
"descriptor": "0xba98d6a5ac827632e3457de7512d211e4ff7e8bd",
"details": "basic",
"tokens": "derived",
"page": null,
"pageSize": 10,
"from": null,
"to": null,
"contractFilter": ""
}
}
Response: 200
{
"id": "5",
"data": {
"address": "0xba98D6a5ac827632E3457De7512d211e4ff7e8bD",
"balance": "7495",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 2,
"nonTokenTxs": 1,
"nonce": "0"
}
}
Get balance history
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{
"id": "7",
"method": "getBalanceHistory",
"params": {
"descriptor": "0x00008eb96bbe046aee645d8933adf151c4b7b614",
"from": null,
"to": null,
"currencies": [
""
],
"groupBy": null
}
}
Response: 200
{
"id": "7",
"data": []
}
Get transaction
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"9","method":"getTransaction","params":{"txid":"0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369"}}
Response: 200
{
"id": "9",
"data": {
"txid": "0x72cc2637c66e83fbf649610801f99872c35828ccdfa2a8a5ae3db54ea3902369",
"vin": [
{
"n": 0,
"addresses": [
"0x184ba627DB853244c9f17f3Cb4378cB8B39bf147"
],
"isAddress": true
}
],
"vout": [
{
"value": "23456712686945189",
"n": 0,
"addresses": [
"0x0c06B6D4EC451987e8C0B772ffcf7F080c46447A"
],
"isAddress": true
}
],
"blockHash": "0x671613acdb0ac1168b5dc86ea1085380caf8ad00b2fbd2924bbc522f3504188f",
"blockHeight": 5780831,
"confirmations": 300,
"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
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"10","method":"getTransactionSpecific","params":{"txid":"0xdc18ac078e20f5ce8ee72004c89400ffa4bee67e8aa292dce69f5978dce84532"}}
Response: 200
{
"id": "10",
"data": {
"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": []
}
}
}
Estimate fee
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"11","method":"estimateFee","params":{"blocks":[2,5,10,20]}}
Response: 200
{
"id": "11",
"data": [
{
"feePerTx": "96107771823903",
"feePerUnit": "1786622271",
"feeLimit": "53793"
},
{
"feePerTx": "5169925369723214079",
"feePerUnit": "96107771823903",
"feeLimit": "53793"
},
{
"feePerTx": "278105795413520854951647",
"feePerUnit": "5169925369723214079",
"feeLimit": "53793"
},
{
"feePerTx": "14960145052679527350413947071",
"feePerUnit": "278105795413520854951647",
"feeLimit": "53793"
}
]
}
Send transaction
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"1","method":"sendTransaction","params":{"hex":"010000000001019d64f0c72a0d206001decbffaa722eb1044534c74eee7a5df8318e42a4323ec10000000017160014550da1f5d25a9dae2eafd6902b4194c4c6500af6ffffffff02809698000000000017a914cd668d781ece600efa4b2404dc91fd26b8b8aed8870553d7360000000017a914246655bdbd54c7e477d0ea2375e86e0db2b8f80a8702473044022076aba4ad559616905fa51d4ddd357fc1fdb428d40cb388e042cdd1da4a1b7357022011916f90c712ead9a66d5f058252efd280439ad8956a967e95d437d246710bc9012102a80a5964c5612bb769ef73147b2cf3c149bc0fd4ecb02f8097629c94ab013ffd00000000"}}
Response: 200
{
"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
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"13","method":"getFiatRatesForTimestamps","params":{"timestamps":[1575288000,1575550800],"currencies":[""]}}
Response: 200
{
"id": "13",
"data": {
"error": {
"message": "No tickers found"
}
}
}
Get fiat rates for tickers list
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1676591569}}
Response: 200
{
"id": "15",
"data": {
"error": {
"message": "No tickers found"
}
}
}
Get current fiat rates
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"6","method":"getCurrentFiatRates","params":{"currencies":[""]}}
Response: 200
{
"id": "6",
"data": {
"error": {
"message": "No tickers found!"
}
}
}
Subscribe new block
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"subscribeNewBlock","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new block
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"unsubscribeNewBlock","params":{}}
Response: 200
{
"id": "16",
"data": {
"subscribed": false
}
}
Subscribe new transaction
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"subscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new transaction
wss://ethkbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"unsubscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": false
}
}
Subscribe address
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"subscribeAddresses","params":{"addresses":["0xba98d6a5ac827632e3457de7512d211e4ff7e8bd","0x73d0385f4d8e00c5e6504c6030f47bf6212736a8"]}}
Response: 200
{
"id": "18",
"data": {
"subscribed": true
}
}
Unsubscribe address
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"unsubscribeAddresses","params":{}}
Response: 200
{
"id": "18",
"data": {
"subscribed": false
}
}
Subscribe new fiat rates
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"19","method":"subscribeFiatRates","params":{"currency":"usd"}}
Response: 200
{
"id": "19",
"data": {
"subscribed": true
}
}
Unsubscribe new fiat rates
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}
Body
{"id":"19","method":"unsubscribeFiatRates","params":{}}
Response: 200
{
"id": "19",
"data": {
"subscribed": false
}
}
Last updated