ZEC Blockbook WSS
Get Info
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"2","method":"getInfo","params":{}}
Response: 200
{
"id": "2",
"data": {
"name": "Zcash",
"shortcut": "ZEC",
"decimals": 8,
"version": "devel",
"bestHeight": 2497125,
"bestHash": "00000000014d6a0b221ae386144ad7e8ed5f0d1165898a4d204da6b304236ce2",
"block0Hash": "00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08",
"testnet": false,
"backend": {
"version": "5090050",
"subversion": "/MagicBean:5.9.0/",
"consensus": {
"chaintip": "c2d6d0b4",
"nextblock": "c2d6d0b4"
}
}
}
}
Ping
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"3","method":"ping","params":{}}
Response: 200
{
"id": "3",
"data": {}
}
Get block hash
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"4","method":"getBlockHash","params":{"height":100000}}
Response: 200
{
"id": "4",
"data": {
"hash": "000000001c5c82cd6baccfc0879e3830fd50d5ede17fa2c37a9a253c610eb285"
}
}
Get account info
wss://zec.nownodes.io/wss/{{api_key}}
Body
{
"id": "5",
"method": "getAccountInfo",
"params": {
"descriptor": "bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706",
"details": "basic",
"tokens": "derived",
"page": null,
"pageSize": 10,
"from": null,
"to": null,
"contractFilter": ""
}
}
Response: 200
{
"id": "5",
"data": {
"address": "bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706",
"balance": "0",
"totalReceived": "0",
"totalSent": "0",
"unconfirmedBalance": "0",
"unconfirmedTxs": 0,
"txs": 0
}
}
Get balance history
wss://zec.nownodes.io/wss/{{api_key}}
Body
{
"id": "7",
"method": "getBalanceHistory",
"params": {
"descriptor": "bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706",
"from": null,
"to": null,
"currencies": [
""
],
"groupBy": null
}
}
Response: 200
{
"id": "7",
"data": [
{
"time": 1709060400,
"txs": 2,
"received": "424698",
"sent": "424698",
"sentToSelf": "0",
"rates": {
"aed": 209833.72,
"ars": 48053356,
"aud": 87301.23,
"bdt": 6268058,
"bhd": 21533.064,
"bmd": 57128.703,
"brl": 281867.3,
"btc": 1.002196,
"cad": 77320.84,
"chf": 50213.785,
"clp": 56008536,
"cny": 411240.94,
"czk": 1334252.2,
"dkk": 392754.1,
"eth": 17.62155,
"eur": 52689.227,
"gbp": 45049.58,
"hkd": 446998.97,
"huf": 20594874,
"idr": 894614300,
"ils": 206136.92,
"inr": 4738737,
"jpy": 8598212,
"krw": 76056030,
"kwd": 17577.36,
"lkr": 17736670,
"mmk": 119932680,
"mxn": 975180.6,
"myr": 273189.47,
"ngn": 89963450,
"nok": 601643.56,
"nzd": 92593.34,
"php": 3204320.5,
"pkr": 15967472,
"pln": 226908.58,
"rub": 5255630.5,
"sar": 214290.95,
"sek": 588895.75,
"sgd": 76780.98,
"thb": 2050577.6,
"try": 1779664.5,
"twd": 1804752.9,
"uah": 2186323.5,
"usd": 57128.703,
"vef": 5720.2974,
"vnd": 1407284400,
"zar": 1090552.6
}
},
{
"time": 1709071200,
"txs": 2,
"received": "2238267",
"sent": "2238267",
"sentToSelf": "0",
"rates": {
"aed": 208075.56,
"ars": 47650724,
"aud": 86569.75,
"bdt": 6215539,
"bhd": 21352.643,
"bmd": 56650.03,
"brl": 279505.6,
"btc": 0.9937987,
"cad": 76672.984,
"chf": 49793.055,
"clp": 55539250,
"cny": 407795.22,
"czk": 1323072.8,
"dkk": 389463.28,
"eth": 17.473902,
"eur": 52247.754,
"gbp": 44672.117,
"hkd": 443253.62,
"huf": 20422314,
"idr": 887118460,
"ils": 204409.73,
"inr": 4699032,
"jpy": 8526170,
"krw": 75418770,
"kwd": 17430.082,
"lkr": 17588056,
"mmk": 118927784,
"mxn": 967009.8,
"myr": 270900.47,
"ngn": 89209660,
"nok": 596602.44,
"nzd": 91817.52,
"php": 3177471.8,
"pkr": 15833684,
"pln": 225007.34,
"rub": 5211594,
"sar": 212495.45,
"sek": 583961.5,
"sgd": 76137.65,
"thb": 2033396.1,
"try": 1764753.1,
"twd": 1789631.1,
"uah": 2168004.8,
"usd": 56650.03,
"vef": 5672.3677,
"vnd": 1395493000,
"zar": 1081415.1
}
},
...
Get transaction
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"9","method":"getTransaction","params":{"txid":"2b2f0796de98d6dc5caff6d1c8109b676e3d2206546b92257530633121f16671"}}
Response: 200
{
"id": "9",
"data": {
"txid": "2b2f0796de98d6dc5caff6d1c8109b676e3d2206546b92257530633121f16671",
"version": 4,
"vin": [
{
"sequence": 4294967295,
"n": 0,
"isAddress": false,
"coinbase": "03f2172600"
}
],
"vout": [
{
"value": "250000000",
"n": 0,
"spent": true,
"hex": "76a914ba92ff06081d5ff6542af8d3b2d209d29ba6337c88ac",
"addresses": [
"t1at7nVNsv6taLRrNRvnQdtfLNRDfsGc3Ak"
],
"isAddress": true
},
{
"value": "25000000",
"n": 1,
"hex": "a914931fec54c1fea86e574462cc32013f5400b8912987",
"addresses": [
"t3XyYW8yBFRuMnfvm5KLGFbEVz25kckZXym"
],
"isAddress": true
},
{
"value": "21875000",
"n": 2,
"hex": "a914a13c02f94304122df58e4e945cdc2db996e38c7e87",
"addresses": [
"t3ZG9cSfopnsMQupKW5v9sTotjcP5P6RTbn"
],
"isAddress": true
},
{
"value": "15625000",
"n": 3,
"hex": "a914d45cb1adffb5215a42720532a076f02c7c778c9087",
"addresses": [
"t3dvVE3SQEi7kqNzwrfNePxZ1d4hUyztBA1"
],
"isAddress": true
}
],
"blockHash": "0000000001e64cd2833730580a5102b066ea696a594d67ad7f4875182facc2c3",
"blockHeight": 2496498,
"confirmations": 630,
"blockTime": 1715033076,
"size": 205,
"value": "312500000",
"valueIn": "0",
"fees": "0",
"hex": "0400008085202f89010000000000000000000000000000000000000000000000000000000000000000ffffffff0503f2172600ffffffff0480b2e60e000000001976a914ba92ff06081d5ff6542af8d3b2d209d29ba6337c88ac40787d010000000017a914931fec54c1fea86e574462cc32013f5400b891298738c94d010000000017a914a13c02f94304122df58e4e945cdc2db996e38c7e87286bee000000000017a914d45cb1adffb5215a42720532a076f02c7c778c908700000000f21726000000000000000000000000"
}
}
Get transaction specific
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"10","method":"getTransactionSpecific","params":{"txid":"2b2f0796de98d6dc5caff6d1c8109b676e3d2206546b92257530633121f16671"}}
Response: 200
{
"id": "10",
"data": {
"hex": "0400008085202f89010000000000000000000000000000000000000000000000000000000000000000ffffffff0503f2172600ffffffff0480b2e60e000000001976a914ba92ff06081d5ff6542af8d3b2d209d29ba6337c88ac40787d010000000017a914931fec54c1fea86e574462cc32013f5400b891298738c94d010000000017a914a13c02f94304122df58e4e945cdc2db996e38c7e87286bee000000000017a914d45cb1adffb5215a42720532a076f02c7c778c908700000000f21726000000000000000000000000",
"txid": "2b2f0796de98d6dc5caff6d1c8109b676e3d2206546b92257530633121f16671",
"authdigest": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"size": 205,
"overwintered": true,
"version": 4,
"versiongroupid": "892f2085",
"locktime": 0,
"expiryheight": 2496498,
"vin": [
{
"coinbase": "03f2172600",
"sequence": 4294967295
}
],
"vout": [
{
"value": 2.50000000,
"valueZat": 250000000,
"valueSat": 250000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 ba92ff06081d5ff6542af8d3b2d209d29ba6337c OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914ba92ff06081d5ff6542af8d3b2d209d29ba6337c88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"t1at7nVNsv6taLRrNRvnQdtfLNRDfsGc3Ak"
]
}
},
{
"value": 0.25000000,
"valueZat": 25000000,
"valueSat": 25000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_HASH160 931fec54c1fea86e574462cc32013f5400b89129 OP_EQUAL",
"hex": "a914931fec54c1fea86e574462cc32013f5400b8912987",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"t3XyYW8yBFRuMnfvm5KLGFbEVz25kckZXym"
]
}
},
{
"value": 0.21875000,
"valueZat": 21875000,
"valueSat": 21875000,
"n": 2,
"scriptPubKey": {
"asm": "OP_HASH160 a13c02f94304122df58e4e945cdc2db996e38c7e OP_EQUAL",
"hex": "a914a13c02f94304122df58e4e945cdc2db996e38c7e87",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"t3ZG9cSfopnsMQupKW5v9sTotjcP5P6RTbn"
]
}
},
{
"value": 0.15625000,
"valueZat": 15625000,
"valueSat": 15625000,
"n": 3,
"scriptPubKey": {
"asm": "OP_HASH160 d45cb1adffb5215a42720532a076f02c7c778c90 OP_EQUAL",
"hex": "a914d45cb1adffb5215a42720532a076f02c7c778c9087",
"reqSigs": 1,
"type": "scripthash",
"addresses": [
"t3dvVE3SQEi7kqNzwrfNePxZ1d4hUyztBA1"
]
}
}
],
"vjoinsplit": [],
"valueBalance": 0.00000000,
"valueBalanceZat": 0,
"vShieldedSpend": [],
"vShieldedOutput": [],
"blockhash": "0000000001e64cd2833730580a5102b066ea696a594d67ad7f4875182facc2c3",
"height": 2496498,
"confirmations": 631,
"time": 1715033076,
"blocktime": 1715033076
}
}
Send transaction
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"1","method":"sendTransaction","params":{"hex":"010000000001019d64f0c72a0d206001decbffaa722eb1044534c74eee7a5df8318e42a4323ec10000000017160014550da1f5d25a9dae2eafd6902b4194c4c6500af6ffffffff02809698000000000017a914cd668d781ece600efa4b2404dc91fd26b8b8aed8870553d7360000000017a914246655bdbd54c7e477d0ea2375e86e0db2b8f80a8702473044022076aba4ad559616905fa51d4ddd357fc1fdb428d40cb388e042cdd1da4a1b7357022011916f90c712ead9a66d5f058252efd280439ad8956a967e95d437d246710bc9012102a80a5964c5612bb769ef73147b2cf3c149bc0fd4ecb02f8097629c94ab013ffd00000000"}}
Response: 200
{
"id": "1",
"data": {
"result": "622ed4e93b25fdb699115ed5a698f410ddeddd7aa7d5e835762905425d2a6de3"
}
}
Get fiat rates for timestamps
wss://zec.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": 26847.354,
"ars": 437688.9,
"aud": 10720.282,
"bdt": 620651.06,
"bhd": 2755.8298,
"bmd": 7308.9824,
"brl": 30870.219,
"btc": 0.002072684,
"cad": 9725.683,
"chf": 7246.6074,
"clp": 5874949.5,
"cny": 51450.12,
"czk": 168583.5,
"dkk": 49300.82,
"eth": 0.10173308,
"eur": 6598.5054,
"gbp": 5648.659,
"hkd": 57218.734,
"huf": 2192127.2,
"idr": 103259750,
"ils": 25384.826,
"inr": 523579.7,
"jpy": 796873.3,
"krw": 8659682,
"kwd": 2222.5447,
"lkr": 1325450.1,
"mmk": 11013702,
"mxn": 143120.11,
"myr": 30542.775,
"ngn": 2650395,
"nok": 67026.26,
"nzd": 11248.225,
"php": 372977.38,
"pkr": 1134879.8,
"pln": 28290.484,
"rub": 469282.72,
"sar": 27408.604,
"sek": 69754.52,
"sgd": 9989.135,
"thb": 221205.83,
"try": 41971.1,
"twd": 222543.89,
"uah": 175139.44,
"usd": 15.143119,
"vef": 1816191900,
"vnd": 168348930,
"zar": 106333.266
}
},
{
"ts": 1575590400,
"rates": {
"aed": 27085.377,
"ars": 442168.88,
"aud": 10791.464,
"bdt": 625776.9,
"bhd": 2780.3438,
"bmd": 7373.7827,
"brl": 30865.916,
"btc": 0.002118513,
"cad": 9716.802,
"chf": 7279.1255,
"clp": 5775146.5,
"cny": 51946.824,
"czk": 169634.61,
"dkk": 49610.07,
"eth": 0.10593553,
"eur": 6640.0913,
"gbp": 5603.2856,
"hkd": 57728.582,
"huf": 2196354.8,
"idr": 103020920,
"ils": 25550.23,
"inr": 525308.25,
"jpy": 801761.2,
"krw": 8760865,
"kwd": 2239.248,
"lkr": 1337502.5,
"mmk": 11056767,
"mxn": 142815.23,
"myr": 30770.795,
"ngn": 2672996.2,
"nok": 67363.266,
"nzd": 11266.284,
"php": 374521.56,
"pkr": 1143235,
"pln": 28392.588,
"rub": 469697.4,
"sar": 27651.521,
"sek": 69972.03,
"sgd": 10033.159,
"thb": 224015.52,
"try": 42391.875,
"twd": 224384.2,
"uah": 175796.9,
"usd": 15.646635,
"vef": 1832293900,
"vnd": 170593170,
"zar": 107953.65
}
}
]
}
}
Get fiat rates for tickers list
wss://zec.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",
"bdt",
"bhd",
"bmd",
"brl",
"btc",
"cad",
"chf",
"clp",
"cny",
"czk",
"dkk",
"eth",
"eur",
"gbp",
"hkd",
"huf",
"idr",
"ils",
"inr",
"jpy",
"krw",
"kwd",
"lkr",
"mmk",
"mxn",
"myr",
"ngn",
"nok",
"nzd",
"php",
"pkr",
"pln",
"rub",
"sar",
"sek",
"sgd",
"thb",
"try",
"twd",
"uah",
"usd",
"vef",
"vnd",
"zar"
]
}
}
Get current fiat rates
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"6","method":"getCurrentFiatRates","params":{"currencies":[""]}}
Response: 200
{
"id": "6",
"data": {
"ts": 1712755809,
"rates": {
"aed": 248263,
"ars": 58495340,
"aud": 103415,
"bdt": 7428079,
"bhd": 25486,
"bmd": 67604,
"brl": 342135,
"btc": 1,
"cad": 92305,
"chf": 61546,
"clp": 64545852,
"cny": 489064,
"czk": 1594837,
"dkk": 468399,
"eth": 19.7215,
"eur": 62792,
"gbp": 53701,
"hkd": 529593,
"huf": 24579174,
"idr": 1077804000,
"ils": 252533,
"inr": 5637349,
"jpy": 10308056,
"krw": 92173510,
"kwd": 20789,
"lkr": 20190384,
"mmk": 141962900,
"mxn": 1112681,
"myr": 320982,
"ngn": 84230660,
"nok": 728548,
"nzd": 112551,
"php": 3821156,
"pkr": 18790116,
"pln": 267799,
"rub": 6306302,
"sar": 253591,
"sek": 723243,
"sgd": 91391,
"thb": 2477468,
"try": 2181006,
"twd": 2174029,
"uah": 2633635,
"usd": 67604,
"vef": 6769.14,
"vnd": 1686505500,
"zar": 1263524
}
}
}
Subscribe new block
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"subscribeNewBlock","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new block
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"16","method":"unsubscribeNewBlock","params":{}}
Response: 200
{
"id": "16",
"data": {
"subscribed": false
}
}
Subscribe new transaction
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"subscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": true
}
}
Unsubscribe new transaction
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"17","method":"unsubscribeNewTransaction","params":{}}
Response: 200
{
"id": "17",
"data": {
"subscribed": false
}
}
Subscribe address
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"subscribeAddresses","params":{"addresses":["bc1qrhsext2jjaczc26etu58fry28ycatznn2zv706","bc1pvan3ka9p3fqln8277hp0m9qts4h7qpcupvz3z2s0v9687tfulcfs9aydm5"]}}
Response: 200
{
"id": "18",
"data": {
"subscribed": true
}
}
Unsubscribe address
wss://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"18","method":"unsubscribeAddresses","params":{}}
Response: 200
{
"id": "18",
"data": {
"subscribed": false
}
}
Subscribe new fiat rates
wss://zec.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://zec.nownodes.io/wss/{{api_key}}
Body
{"id":"19","method":"unsubscribeFiatRates","params":{}}
Response: 200
{
"id": "19",
"data": {
"subscribed": false
}
}
Last updated