BlockBook WSS 0.6.0
Get Info
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"1","method":"getInfo","params":{}}Response: 200
{
"id": "1",
"data": {
"name": "Dogecoin",
"shortcut": "DOGE",
"network": "DOGE",
"decimals": 8,
"version": "0.6.0",
"bestHeight": 6324031,
"bestHash": "8d423600474b5c5c344ab3df7d4918760345dc526f552e024ac3a9863ec6c6f0",
"block0Hash": "1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691",
"testnet": false,
"backend": {
"version": "1140900",
"subversion": "/Shibetoshi:1.14.9/"
}
}
}Ping
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"2","method":"ping","params":{}}Response: 200
{
"id": "2",
"data": {}
}Get block hash
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"3","method":"getBlockHash","params":{"height":6321665}}Response: 200
{
"id": "3",
"data": {
"hash": "3e1f7b8d03b7890041fef54796c3065c698154382aae4ecc65085fd9134a4b0d"
}
}Get account info
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "4",
"method": "getAccountInfo",
"params": {
"descriptor": "DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9",
"details": "basic"
}
}Response: 200
{
"id": "4",
"data": {
"address": "DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9",
"balance": "54669676465",
"totalReceived": "727780265532",
"totalSent": "673110589067",
"unconfirmedTxs": 0,
"txs": 929
}
}Get account UTXO
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"5","method":"getAccountUtxo","params":{"descriptor":"DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9"}}Response: 200
{
"id": "5",
"data": [
{
"txid": "24bd8ca237bad61da161d5cdd33b9e3e371b64156299d4009b212062dc5d6b87",
"vout": 0,
"value": "450947393",
"height": 6324009,
"confirmations": 23
},
{
"txid": "018fc7b312102b55d353e193853c36698173293b43b20cb059ed5859588652f3",
"vout": 1,
"value": "261375392",
"height": 6323986,
"confirmations": 46
}
]
}Get balance history
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "6",
"method": "getBalanceHistory",
"params": {
"descriptor": "DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9",
"from": 1786042800,
"to": 1786050000
}
}Response: 200
{
"id": "6",
"data": [
{
"time": 1786042800,
"txs": 4,
"received": "1152751802",
"sent": "148453338029",
"sentToSelf": "0",
"rates": {
"aed": 0.2523382,
"ars": 103.04862,
"aud": 0.097694755,
"bdt": 8.503213,
"bhd": 0.025906561,
"bmd": 0.06871019,
"brl": 0.35202295,
"btc": 1.0693034e-06,
"cad": 0.096291564,
"chf": 0.055822775,
"clp": 62.930286,
"cny": 0.46373194,
"czk": 1.4454734,
"dkk": 0.4457196,
"eth": 3.6192163e-05,
"eur": 0.05962327,
"gbp": 0.051147733,
"hkd": 0.53984547,
"huf": 21.81234,
"idr": 1233.1666,
"ils": 0.20666069,
"inr": 6.548917,
"jpy": 10.885241,
"krw": 97.79507,
"kwd": 0.021276867,
"lkr": 23.074625,
"mmk": 144.26872,
"mxn": 1.1822709,
"myr": 0.28112775,
"ngn": 93.64513,
"nok": 0.6552376,
"nzd": 0.11710388,
"php": 4.174144,
"pkr": 19.071041,
"pln": 0.2564167,
"rub": 5.711789,
"sar": 0.2584203,
"sek": 0.65475106,
"sgd": 0.088190906,
"thb": 2.2749946,
"try": 3.2750578,
"twd": 2.2139664,
"uah": 3.0759234,
"usd": 0.06871019,
"vnd": 1802.471,
"zar": 1.12322
}
},
{
"time": 1786046400,
"txs": 1,
"received": "329865896",
"sent": "0",
"sentToSelf": "0",
"rates": {
"aed": 0.25238183,
"ars": 103.066444,
"aud": 0.09771166,
"bdt": 8.5046835,
"bhd": 0.02591104,
"bmd": 0.06872208,
"brl": 0.35208383,
"btc": 1.0694883e-06,
"cad": 0.09630822,
"chf": 0.055832427,
"clp": 62.941177,
"cny": 0.46381214,
"czk": 1.4457235,
"dkk": 0.44579667,
"eth": 3.6198424e-05,
"eur": 0.05963358,
"gbp": 0.051156577,
"hkd": 0.53993887,
"huf": 21.81611,
"idr": 1233.3799,
"ils": 0.20669642,
"inr": 6.5500493,
"jpy": 10.887123,
"krw": 97.81198,
"kwd": 0.021280548,
"lkr": 23.078615,
"mmk": 144.29367,
"mxn": 1.1824753,
"myr": 0.2811764,
"ngn": 93.661316,
"nok": 0.6553509,
"nzd": 0.11712413,
"php": 4.1748657,
"pkr": 19.074339,
"pln": 0.25646102,
"rub": 5.7127767,
"sar": 0.25846496,
"sek": 0.65486425,
"sgd": 0.08820616,
"thb": 2.275388,
"try": 3.2756243,
"twd": 2.214349,
"uah": 3.0764558,
"usd": 0.06872208,
"vnd": 1802.7828,
"zar": 1.1234143
}
}
]
}Get transaction
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "7",
"method": "getTransaction",
"params": {
"txid": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d"
}
}Response: 200
{
"id": "7",
"data": {
"txid": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d",
"version": 1,
"lockTime": 6320995,
"vin": [
{
"txid": "a113330a70d1c55f7d758c8849403c6bd30a2cf80190ef6bd415bcfb023e3885",
"sequence": 4294967294,
"n": 0,
"addresses": [
"DPqtPuM24Q8kuMxBefigTb57ZsjPgYNwGq"
],
"isAddress": true,
"value": "53217200000",
"hex": "483045022100b7e4c1dcb67b900120fabfc11a269d30f7ea89042489de37f854161d309348fc0220065f58b636b50e28c56e40a3114e024b5a082257b118d44fa5b86ef25151e1640121028d8156fc570c9307a0b09c12318d8b05713ed6a580abe464e2c9cef5d0032295"
}
],
"vout": [
{
"value": "275789919",
"n": 0,
"spent": true,
"hex": "76a91486584073b779ac2eefde3c568342b197ca02f49a88ac",
"addresses": [
"DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9"
],
"isAddress": true
},
{
"value": "50046647070",
"n": 1,
"hex": "76a9140a0c548f59fdf03beb042784e7cc169ac4325bdd88ac",
"addresses": [
"D64E4uG8epYjQ9JucEeeAyxP1yZKgFC1PJ"
],
"isAddress": true
}
],
"blockHash": "6251bbc16002575707a0f66107c87870429d35e2195cd3a5cd99c6a3dabcd895",
"blockHeight": 6320999,
"confirmations": 3033,
"blockTime": 1786035390,
"size": 260,
"value": "53216940000",
"valueIn": "53217200000",
"fees": "260000",
"hex": "010000000185383e02fbbc15d46bef9001f82c0ad36b3c4049888c757d5fc5d1700a3313a1000000006b483045022100b7e4c1dcb67b900120fabfc11a269d30f7ea89042489de37f854161d309348fc0220065f58b636b50e28c56e40a3114e024b5a082257b118d44fa5b86ef25151e1640121028d8156fc570c9307a0b09c12318d8b05713ed6a580abe464e2c9cef5d0032295feffffff035f387010000000001976a91486584073b779ac2eefde3c568342b197ca02f49a88ac1e3b03a70b0000001976a9140a0c548f59fdf03beb042784e7cc169ac4325bdd88ac639c86ac000000001976a914878aa391a17f10ab642aa1c6e91ba9cd933b0eda88ac63736000"
}
}Get transaction specific
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "8",
"method": "getTransactionSpecific",
"params": {
"txid": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d"
}
}Response: 200
{
"id": "8",
"data": {
"hex": "010000000185383e02fbbc15d46bef9001f82c0ad36b3c4049888c757d5fc5d1700a3313a1000000006b483045022100b7e4c1dcb67b900120fabfc11a269d30f7ea89042489de37f854161d309348fc0220065f58b636b50e28c56e40a3114e024b5a082257b118d44fa5b86ef25151e1640121028d8156fc570c9307a0b09c12318d8b05713ed6a580abe464e2c9cef5d0032295feffffff035f387010000000001976a91486584073b779ac2eefde3c568342b197ca02f49a88ac1e3b03a70b0000001976a9140a0c548f59fdf03beb042784e7cc169ac4325bdd88ac639c86ac000000001976a914878aa391a17f10ab642aa1c6e91ba9cd933b0eda88ac63736000",
"txid": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d",
"hash": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d",
"size": 260,
"vsize": 260,
"version": 1,
"locktime": 6320995,
"vin": [
{
"txid": "a113330a70d1c55f7d758c8849403c6bd30a2cf80190ef6bd415bcfb023e3885",
"vout": 0,
"scriptSig": {
"asm": "3045022100b7e4c1dcb67b900120fabfc11a269d30f7ea89042489de37f854161d309348fc0220065f58b636b50e28c56e40a3114e024b5a082257b118d44fa5b86ef25151e164[ALL] 028d8156fc570c9307a0b09c12318d8b05713ed6a580abe464e2c9cef5d0032295",
"hex": "483045022100b7e4c1dcb67b900120fabfc11a269d30f7ea89042489de37f854161d309348fc0220065f58b636b50e28c56e40a3114e024b5a082257b118d44fa5b86ef25151e1640121028d8156fc570c9307a0b09c12318d8b05713ed6a580abe464e2c9cef5d0032295"
},
"sequence": 4294967294
}
],
"vout": [
{
"value": 2.75789919,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 86584073b779ac2eefde3c568342b197ca02f49a OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91486584073b779ac2eefde3c568342b197ca02f49a88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9"
]
}
},
{
"value": 500.4664707,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 0a0c548f59fdf03beb042784e7cc169ac4325bdd OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9140a0c548f59fdf03beb042784e7cc169ac4325bdd88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"D64E4uG8epYjQ9JucEeeAyxP1yZKgFC1PJ"
]
}
}
],
"blockhash": "6251bbc16002575707a0f66107c87870429d35e2195cd3a5cd99c6a3dabcd895",
"confirmations": 3033,
"time": 1786035390,
"blocktime": 1786035390
}
}Estimate fee
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"9","method":"estimateFee","params":{"blocks":[2,6]}}Response: 200
{
"id": "9",
"data": [
{
"feePerUnit": "50431299"
},
{
"feePerUnit": "132885"
}
]
}Get long term fee rate
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"10","method":"longTermFeeRate","params":{}}Response: 200
{
"id": "10",
"data": {
"feePerUnit": "-100000000",
"blocks": 1008
}
}Get block filter
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "11",
"method": "getBlockFilter",
"params": {
"scriptType": "",
"blockHash": "3e1f7b8d03b7890041fef54796c3065c698154382aae4ecc65085fd9134a4b0d"
}
}Response: 200
{
"id": "11",
"data": {
"P": 0,
"M": 1,
"zeroedKey": false,
"blockFilter": ""
}
}Compact block filters are not built on this endpoint, so
blockFiltercomes back empty andPis 0. SendscriptTypeempty, as no script type is configured.
Get mempool filters
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"12","method":"getMempoolFilters","params":{"scriptType":"","mempool":true}}Response: 200
{
"id": "12",
"data": {
"P": 0,
"M": 1,
"zeroedKey": false,
"entries": {}
}
}Mempool filters are not built on this endpoint, so
entriescomes back empty.
Send transaction
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"13","method":"sendTransaction","params":{"hex":"<signed raw transaction hex>"}}Response: 200
{
"id": "13",
"data": {
"result": "c21262e87f8c02637510d1c7f24aa0dd582f3019f6ff60078c116eaeb242f00d"
}
}A transaction the backend rejects returns an error object instead, for example
{"id": "13", "data": {"error": {"message": "-22: TX decode failed"}}}.
Get fiat rates for timestamps
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "14",
"method": "getFiatRatesForTimestamps",
"params": {
"timestamps": [
1786042800
],
"currencies": [
"usd"
]
}
}Response: 200
{
"id": "14",
"data": {
"tickers": [
{
"ts": 1786042800,
"rates": {
"usd": 0.06871019
}
}
]
}
}Get fiat rates for tickers list
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1786042800}}Response: 200
{
"id": "15",
"data": {
"ts": 1786042800,
"available_currencies": [
"aed",
"ars"
]
}
}Get current fiat rates
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"getCurrentFiatRates","params":{"currencies":["usd"]}}Response: 200
{
"id": "16",
"data": {
"ts": 1786227301,
"rates": {
"usd": 0.070743
}
}
}Subscribe new block
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"subscribeNewBlock","params":{}}Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}Unsubscribe new block
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"unsubscribeNewBlock","params":{}}Response: 200
{
"id": "18",
"data": {
"subscribed": false
}
}Subscribe new transaction
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"19","method":"subscribeNewTransaction","params":{}}Response: 200
{
"id": "19",
"data": {
"subscribed": true
}
}Unsubscribe new transaction
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"20","method":"unsubscribeNewTransaction","params":{}}Response: 200
{
"id": "20",
"data": {
"subscribed": false
}
}Subscribe address
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "21",
"method": "subscribeAddresses",
"params": {
"addresses": [
"DHPSooaZADQG4yGzX1FRUVQQUui5hoB9C9"
]
}
}Response: 200
{
"id": "21",
"data": {
"subscribed": true
}
}Optional parameter
newBlockTxs(boolean, default false): when true, the subscription also publishes confirmed transactions for the subscribed addresses as new blocks are connected. Without it only mempool transactions are delivered, so transactions that land straight in a block are never announced.
Unsubscribe address
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"22","method":"unsubscribeAddresses","params":{}}Response: 200
{
"id": "22",
"data": {
"subscribed": false
}
}Subscribe new fiat rates
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"23","method":"subscribeFiatRates","params":{"currency":"usd"}}Response: 200
{
"id": "23",
"data": {
"subscribed": true
}
}Unsubscribe new fiat rates
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"24","method":"unsubscribeFiatRates","params":{}}Response: 200
{
"id": "24",
"data": {
"subscribed": false
}
}Get block
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"25","method":"getBlock","params":{"id":"6321665","page":1}}Response: 200
{
"id": "25",
"data": {
"error": {
"message": "Not supported"
}
}
}Not supported on this endpoint. This method requires the extended index, which is not enabled.
Get block filters batch
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "26",
"method": "getBlockFiltersBatch",
"params": {
"scriptType": "",
"bestKnownBlockHash": "3e1f7b8d03b7890041fef54796c3065c698154382aae4ecc65085fd9134a4b0d",
"pageSize": 2
}
}Response: 200
{
"id": "26",
"data": {
"error": {
"message": "Not supported"
}
}
}Not supported on this endpoint. Compact block filters are not built.
Get contract info
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{
"id": "27",
"method": "getContractInfo",
"params": {
"contract": "0x0000000000000000000000000000000000000001"
}
}Response: 200
{
"id": "27",
"data": {
"error": {
"message": "getContractInfo is not supported on this coin"
}
}
}Available on Ethereum-type networks only. This network has no contract layer.
RPC call
Copied!wss://dogebook.nownodes.io/wss/{{api_key}}
Body
{"id":"28","method":"rpcCall","params":{"method":"getblockcount","params":[]}}Response: 200
{
"id": "28",
"data": {
"error": {
"message": "not supported"
}
}
}Available on Ethereum-type networks only.