DASH Blockbook WSS
Get Info
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"2","method":"getInfo","params":{}}
Response: 200
{
"id": "2",
"data": {
"name": "Dash",
"shortcut": "DASH",
"decimals": 8,
"version": "devel",
"bestHeight": 2055114,
"bestHash": "0000000000000025814eab798c092833b3648bf1c24e6db02a29729e97a9c460",
"block0Hash": "00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6",
"testnet": false,
"backend": {
"version": "200101",
"subversion": "/Dash Core:20.1.1(dashcore)/"
}
}
}
Ping
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"3","method":"ping","params":{}}
Response: 200
{
"id": "3",
"data": {}
}
Get block hash
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"4","method":"getBlockHash","params":{"height":100000}}
Response: 200
{
"id": "4",
"data": {
"hash": "00000000000fd08c2fb661d2fcb0d49abb3a91e5f27082ce64feed3b4dede2e2"
}
}
Get account info
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{
"id": "5",
"method": "getAccountInfo",
"params": {
"descriptor": "XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw",
"details": "basic",
"tokens": "derived",
"page": null,
"pageSize": 10,
"from": null,
"to": null,
"contractFilter": ""
}
}
Response: 200
{
"id": "5",
"data": {
"address": "XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw",
"balance": "124659460396",
"totalReceived": "537450408494",
"totalSent": "412790948098",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 9518
}
}
Get balance history
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{
"id": "7",
"method": "getBalanceHistory",
"params": {
"descriptor": "XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw",
"from": null,
"to": null,
"currencies": [
""
],
"groupBy": null
}
}
Response: 200
{
"id": "7",
"data": [
{
"time": 1708495200,
"txs": 2,
"received": "100000000",
"sent": "100000000",
"sentToSelf": "0",
"rates": {
"aed": 108.26548,
"ars": 24695.477,
"aud": 44.995167,
"bch": 0.111901656,
"bdt": 3234.8274,
"bhd": 11.106334,
"bits": 568.68445,
"bmd": 29.476034,
"bnb": 0.077784896,
"brl": 145.5055,
"btc": 0.0005686844,
"cad": 39.79919,
"chf": 25.920694,
"clp": 28582.322,
"cny": 211.89732,
"czk": 689.80994,
"dkk": 203.08629,
"dot": 3.9430292,
"eos": 38.601048,
"eth": 0.009900745,
"eur": 27.24358,
"gbp": 23.326656,
"gel": 77.96411,
"hkd": 230.5306,
"huf": 10550.0625,
"idr": 461178.84,
"ils": 108.445724,
"inr": 2444.7026,
"jpy": 4432.2466,
"krw": 39299.312,
"kwd": 9.070572,
"link": 1.5873107,
"lkr": 9182.629,
"ltc": 0.42726442,
"mmk": 61896.34,
"mxn": 502.53986,
"myr": 141.33759,
"ngn": 45938.137,
"nok": 308.93536,
"nzd": 47.696205,
"php": 1648.3292,
...
Get transaction
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"9","method":"getTransaction","params":{"txid":"5efbfea92d442ba0f7172b9cefb9b181b53bf1b9c7de7b4f8a890092df5ed6ab"}}
Response: 200
{
"id": "9",
"data": {
"txid": "5efbfea92d442ba0f7172b9cefb9b181b53bf1b9c7de7b4f8a890092df5ed6ab",
"version": 3,
"lockTime": 565236400,
"vin": [
{
"sequence": 2961285562,
"n": 0,
"isAddress": false,
"coinbase": "03a15b1f04d7f91c6608000021ba4fb401000fe4b883e5bda9e7a59ee4bb99e9b1bc04f09f909f"
}
],
"vout": [
{
"value": "51330595",
"n": 0,
"hex": "76a91464d4d4127bbce4b888bb4af080fa4de863b02b3f88ac",
"addresses": [
"XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw"
],
"isAddress": true
},
{
"value": "153991785",
"n": 1,
"hex": "76a914b0d43f7eb7d21b43fae7b86c9b3cbfce23ba976888ac",
"addresses": [
"Xroq2GSk1WUTiUx1dNPz3uJ5ruwWuDJL69"
],
"isAddress": true
}
],
"blockHash": "0000000000000030e17fdbc5f0686d5e05572d2529c14f89bc5a54d7ece16733",
"blockHeight": 2055073,
"confirmations": 43,
"blockTime": 1713174999,
"size": 334,
"value": "205322380",
"valueIn": "0",
"fees": "0",
"hex": "03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff2703a15b1f04d7f91c6608000021ba4fb401000fe4b883e5bda9e7a59ee4bb99e9b1bc04f09f909fbaa181b002233e0f03000000001976a91464d4d4127bbce4b888bb4af080fa4de863b02b3f88ac69ba2d09000000001976a914b0d43f7eb7d21b43fae7b86c9b3cbfce23ba976888acb0d2b021af0300a15b1f00fe529cd93c7d8e440af707fbe6cc0e16a4c9418907fcd6ea2b62bdac97bb921bb424666471648be3249bddbb5fc22eb8bce6837dbd74a22588be86c18176f570008275db1fc5bd839bc02f508b6bcc6a237d5f616636db93e8b176867f48e1c3f53f9c534acee22e4e1295246ef739a9f60612b7f45dbae7116f3b9233767e9af5b024fbd8260a58b6c74b11500a685802fd01e3ef8dacb06a4a5a6408b284ac960000000000000000"
}
}
Get transaction specific
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"10","method":"getTransactionSpecific","params":{"txid":"5efbfea92d442ba0f7172b9cefb9b181b53bf1b9c7de7b4f8a890092df5ed6ab"}}
Response: 200
{
"id": "10",
"data": {
"txid": "5efbfea92d442ba0f7172b9cefb9b181b53bf1b9c7de7b4f8a890092df5ed6ab",
"version": 3,
"type": 5,
"size": 334,
"locktime": 565236400,
"vin": [
{
"coinbase": "03a15b1f04d7f91c6608000021ba4fb401000fe4b883e5bda9e7a59ee4bb99e9b1bc04f09f909f",
"sequence": 2961285562
}
],
"vout": [
{
"value": 0.51330595,
"valueSat": 51330595,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 64d4d4127bbce4b888bb4af080fa4de863b02b3f OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91464d4d4127bbce4b888bb4af080fa4de863b02b3f88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"XjszN1jZJthEoaQDhGthRkaHL9AqaG3Vzw"
]
}
},
{
"value": 1.53991785,
"valueSat": 153991785,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b0d43f7eb7d21b43fae7b86c9b3cbfce23ba9768 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b0d43f7eb7d21b43fae7b86c9b3cbfce23ba976888ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"Xroq2GSk1WUTiUx1dNPz3uJ5ruwWuDJL69"
]
}
}
],
"extraPayloadSize": 175,
"extraPayload": "0300a15b1f00fe529cd93c7d8e440af707fbe6cc0e16a4c9418907fcd6ea2b62bdac97bb921bb424666471648be3249bddbb5fc22eb8bce6837dbd74a22588be86c18176f570008275db1fc5bd839bc02f508b6bcc6a237d5f616636db93e8b176867f48e1c3f53f9c534acee22e4e1295246ef739a9f60612b7f45dbae7116f3b9233767e9af5b024fbd8260a58b6c74b11500a685802fd01e3ef8dacb06a4a5a6408b284ac960000000000000000",
"cbTx": {
"version": 3,
"height": 2055073,
"merkleRootMNList": "1b92bb97acbd622bead6fc078941c9a4160ecce6fb07f70a448e7d3cd99c52fe",
"merkleRootQuorums": "70f57681c186be8825a274bd7d83e6bcb82ec25fbbdd9b24e38b6471646624b4",
"bestCLHeightDiff": 0,
"bestCLSignature": "8275db1fc5bd839bc02f508b6bcc6a237d5f616636db93e8b176867f48e1c3f53f9c534acee22e4e1295246ef739a9f60612b7f45dbae7116f3b9233767e9af5b024fbd8260a58b6c74b11500a685802fd01e3ef8dacb06a4a5a6408b284ac96",
"creditPoolBalance": 0.00000000
},
"hex": "03000500010000000000000000000000000000000000000000000000000000000000000000ffffffff2703a15b1f04d7f91c6608000021ba4fb401000fe4b883e5bda9e7a59ee4bb99e9b1bc04f09f909fbaa181b002233e0f03000000001976a91464d4d4127bbce4b888bb4af080fa4de863b02b3f88ac69ba2d09000000001976a914b0d43f7eb7d21b43fae7b86c9b3cbfce23ba976888acb0d2b021af0300a15b1f00fe529cd93c7d8e440af707fbe6cc0e16a4c9418907fcd6ea2b62bdac97bb921bb424666471648be3249bddbb5fc22eb8bce6837dbd74a22588be86c18176f570008275db1fc5bd839bc02f508b6bcc6a237d5f616636db93e8b176867f48e1c3f53f9c534acee22e4e1295246ef739a9f60612b7f45dbae7116f3b9233767e9af5b024fbd8260a58b6c74b11500a685802fd01e3ef8dacb06a4a5a6408b284ac960000000000000000",
"blockhash": "0000000000000030e17fdbc5f0686d5e05572d2529c14f89bc5a54d7ece16733",
"height": 2055073,
"confirmations": 43,
"time": 1713174999,
"blocktime": 1713174999,
"instantlock": true,
"instantlock_internal": false,
"chainlock": true
}
}
Estimate fee
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"11","method":"estimateFee","params":{"blocks":[2,5,10,20]}}
Response: 200
{
"id": "11",
"data": [
{
"feePerUnit": "461"
},
{
"feePerUnit": "461"
},
{
"feePerUnit": "461"
},
{
"feePerUnit": "461"
}
]
}
Send transaction
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"1","method":"sendTransaction","params":{"hex":"01000000016cf335dcf956288c8accf502780cd7ee8cfe2ca196abb5318b4a43b382e9ca89000000006b483045022100ff5e0a663f2831a3178c2400bfcb889a002a5410d40269aae8b2e91fd383c0e902202ffc219665dc195f76cf6fc83de99966d6e493c5c81ab96fc0acc94bdbba922441210340b9ff8973614c195feaab1a04abbe7fc793a29070e489945cf9c8629ea04e5bffffffff0380969800000000001976a9140a0e2c484394a7698ac0bab399933d34bc0ff4da88ac903a9400000000001976a9140c77797d0fb9ebc22fde0536ff699a7a7faa44b388ac0000000000000000426a403d3a4253432e424e423a3078374233356645316366394341344344663538383863393439343946316164433531313932363931363a302f312f303a74643a373000000000"}}
Response: 200
{
"id": "1",
"data": {
"error": {
"message": "-25: bad-txns-inputs-missingorspent"
}
}
}
Get fiat rates for timestamps
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"13","method":"getFiatRatesForTimestamps","params":{"timestamps":[1575288000,1575550800],"currencies":[""]}}
Response: 200
{
"id": "13",
"data": {
"tickers": [
{
"ts": 1575331200,
"rates": {
"aed": 189.449,
"ars": 3088.5625,
"aud": 75.64793,
"bch": 0.2413542,
"bdt": 4379.639,
"bhd": 19.44658,
"bits": 7059.363,
"bmd": 51.57601,
"bnb": 3.4054155,
"brl": 217.83644,
"btc": 0.0070593627,
"cad": 68.62952,
"chf": 51.13586,
"clp": 41456.723,
"cny": 363.05902,
"czk": 1189.6136,
"dkk": 347.89243,
"eos": 19.259365,
"eth": 0.3464931,
"eur": 46.562515,
"gbp": 39.8599,
"hkd": 403.76538,
"huf": 15468.798,
"idr": 728654.94,
"ils": 179.12865,
"inr": 3694.6528,
"jpy": 5623.156,
"krw": 61107.258,
"kwd": 15.68344,
"link": 24.65917,
"lkr": 9353.071,
"ltc": 1.1327479,
"mmk": 77718.45,
"mxn": 1009.9305,
"myr": 215.52583,
"ngn": 18702.576,
"nok": 472.97238,
"nzd": 79.37337,
"php": 2631.9238,
"pkr": 8008.306,
"pln": 199.63248,
"rub": 3311.505,
"sar": 193.40947,
...
Get fiat rates for tickers list
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"15","method":"getFiatRatesTickersList","params":{"timestamp":1676591569}}
Response: 200
{
"id": "15",
"data": {
"ts": 1676592000,
"available_currencies": [
"aed",
"ars",
"aud",
"bch",
"bdt",
"bhd",
"bits",
"bmd",
"bnb",
"brl",
"btc",
"cad",
"chf",
"clp",
"cny",
"czk",
"dkk",
"dot",
"eos",
"eth",
"eur",
"gbp",
"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
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"6","method":"getCurrentFiatRates","params":{"currencies":[""]}}
Response: 200
{
"id": "6",
"data": {
"ts": 1709635750,
"rates": {
"aed": 148.49,
"ars": 34132,
"aud": 62.26,
"bch": 0.09049196,
"bdt": 4439.68,
"bhd": 15.24,
"bits": 602.74,
"bmd": 40.43,
"bnb": 0.0961639,
"brl": 199.97,
"btc": 0.00060274,
"cad": 54.91,
"chf": 35.83,
"clp": 39393,
"cny": 291.05,
"czk": 945.58,
"dkk": 277.71,
"dot": 3.793113,
"eos": 36.322548,
"eth": 0.01086426,
"eur": 37.26,
"gbp": 31.87,
"gel": 107.14,
"hkd": 316.24,
"huf": 14740.41,
"idr": 637271,
"ils": 145.18,
"inr": 3351.7,
"jpy": 6081.33,
"krw": 53918,
"kwd": 12.44,
"link": 1.942312,
"lkr": 12463.51,
"ltc": 0.44922748,
"mmk": 84948,
"mxn": 686.3,
"myr": 191.27,
"ngn": 62280,
"nok": 426.92,
"nzd": 66.47,
"php": 2263.96,
"pkr": 11300.19,
"pln": 161.15,
"rub": 3688.74,
"sar": 151.63,
"sats": 60274,
"sek": 419.98,
"sgd": 54.33,
"thb": 1448.56,
"try": 1277.56,
"twd": 1275.26,
"uah": 1549.36,
"usd": 40.43,
"vef": 4.05,
"vnd": 998731,
"xag": 1.69,
"xau": 0.01903299,
"xdr": 30.49,
"xlm": 271.063,
"xrp": 62.646,
"yfi": 0.00389286,
"zar": 768.34
}
}
}
Subscribe new block
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"subscribeNewBlock","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new block
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"unsubscribeNewBlock","params":{}}
Response: 200
{
"id": "16",
"data": {
"subscribed": false
}
}
Subscribe new transaction
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"subscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new transaction
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"unsubscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": false
}
}
Subscribe address
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"subscribeAddresses","params":{"addresses":["bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706","bc1pvan3ka9p3fqln8277hp0m9qts4h7qpcupvz3z2s0v9687tfulcfs9aydm5"]}}
Response: 200
{
"id": "18",
"data": {
"subscribed": true
}
}
Unsubscribe address
wss://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"unsubscribeAddresses","params":{}}
Response: 200
{
"id": "18",
"data": {
"subscribed": false
}
}
Subscribe new fiat rates
wss://dashbook.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://dashbook.nownodes.io/wss/{{api_key}}
Body
{"id":"19","method":"unsubscribeFiatRates","params":{}}
Response: 200
{
"id": "19",
"data": {
"subscribed": false
}
}
Last updated