getbestblockhash
Returns the hash of the best (tip) block in the most-work fully-validated chain.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}
Example response: 200
{
"result": "696192c724001ca04a0c91a14d1357c6c3176c8c088df1a053b14e53ff03debd",
"error": null,
"id": "curltest"
}
getblock
If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’.
If verbosity is 1, returns an Object with information about block ‘hash’.
If verbosity is 2, returns an Object with information about block ‘hash’ and information about each transaction.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblock",
"params": [
"696192c724001ca04a0c91a14d1357c6c3176c8c088df1a053b14e53ff03debd"
]
}
Example response: 200
{
"result": {
"hash": "696192c724001ca04a0c91a14d1357c6c3176c8c088df1a053b14e53ff03debd",
"pow_hash": "000000000077d5f1500dc5f9c425989b3c8728c1ea98a830a39a1f148b1ccf68",
"algo": "blake",
"confirmations": 3,
"strippedsize": 283,
"size": 283,
"weight": 1132,
"height": 7498477,
"version": 8196,
"versionHex": "00002004",
"merkleroot": "1bcd682deae0ea748c0912917a626daf130e96e450984995350faad28bc78fa6",
"tx": [
"1bcd682deae0ea748c0912917a626daf130e96e450984995350faad28bc78fa6"
],
"time": 1715113339,
"mediantime": 1715113072,
"nonce": 577987048,
"bits": "1c01325a",
"difficulty": 213.9208935812103,
"chainwork": "0000000000000000000000000000000000000000017d7a056421861e515f6326",
"nTx": 1,
"signature": "3044022037ac074d606147b0ee844e306bf471bd5bb9e8308b59c6959651279e999fd147022076cfcf0155ffd9e89754110879a1b5b3aa04afcc53acd9b675d5a7924c59dd8f",
"previousblockhash": "000000000636d5be77a2c9b88ed223a46c562277b5ad5a5cdbc830a21aef3bd9",
"nextblockhash": "00000000880e9937a8ef36cfced50a62acebf5f0cf5c47ebddb1fbfd0809a8af"
},
"error": null,
"id": "curltest"
}
getblockchaininfo
Returns an object containing various state info regarding blockchain processing.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockchaininfo",
"params": []
}
Example response: 200
{
"result": {
"chain": "main",
"blocks": 7498480,
"headers": 7498480,
"bestblockhash": "b0fbb27e57c8ddd422dc67b46c2623321aa1440a7ad15ddf3e89f5d408a5b8c7",
"difficulty": 1.260167291606576,
"mediantime": 1715113205,
"verificationprogress": 0.9999998968656583,
"initialblockdownload": false,
"chainwork": "0000000000000000000000000000000000000000017d7a05642f4e50e5506053",
"size_on_disk": 8967126612,
"pruned": false,
"softforks": [
{
"id": "bip34",
"version": 2,
"reject": {
"status": true
}
},
{
"id": "bip66",
"version": 3,
"reject": {
"status": true
}
},
{
"id": "bip65",
"version": 4,
"reject": {
"status": true
}
}
],
"bip9_softforks": {
"csv": {
"status": "failed",
"startTime": 1529247969,
"timeout": 1559347200,
"since": 3173000
},
"segwit": {
"status": "failed",
"startTime": 1529247969,
"timeout": 1559347200,
"since": 3173000
}
},
"warnings": ""
},
"error": null,
"id": "curltest"
}
getblockcount
Returns the height of the most-work fully-validated chain.
The genesis block has height 0.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockcount",
"params": []
}
Example response: 200
{
"result": 7498480,
"error": null,
"id": "curltest"
}
getblockhash
Returns hash of block in best-block-chain at height provided.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockhash",
"params": [
1000
]
}
Example response: 200
{
"result": "0000000001b5809284949abb8be7e0e0d1d5de9d2be00585bc41de5573c1670a",
"error": null,
"id": "curltest"
}
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader ‘hash’.
If verbose is true, returns an Object with information about blockheader ‘hash’.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockheader",
"params": [
"0000000001b5809284949abb8be7e0e0d1d5de9d2be00585bc41de5573c1670a"
]
}
Example response: 200
{
"result": {
"hash": "0000000001b5809284949abb8be7e0e0d1d5de9d2be00585bc41de5573c1670a",
"confirmations": 7497481,
"height": 1000,
"version": 4,
"versionHex": "00000004",
"merkleroot": "3ebe271b995263445dc06615796699a74c4a01ca2fe7990b360d10da9e1482fb",
"time": 1412920163,
"mediantime": 1412919891,
"nonce": 2151974184,
"bits": "1c02a37d",
"difficulty": 97.01870753216713,
"chainwork": "00000000000000000000000000000000000000000000000181037093887b1f09",
"nTx": 1,
"previousblockhash": "00000000011d19d7348cf083e29e64dfaf4f8d177859f260b70a531ef60c6ac4",
"nextblockhash": "0000000000ffef3471a240a54f06ca8068cd414133049e3f8405e726318a8e02"
},
"error": null,
"id": "curltest"
}
getblockstats
Compute per block statistics for a given window. All amounts are in satoshis.
It won’t work for some heights with pruning.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockstats",
"params": [
1000,
[
"minfeerate",
"avgfeerate"
]
]
}
Example response: 200
{
"result": {
"avgfeerate": 0,
"minfeerate": 0
},
"error": null,
"id": "curltest"
}
getchaintips
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getchaintips",
"params": []
}
Example response: 200
{
"result": [
{
"height": 838408,
"hash": "0000000000000000000290e2caf27f3f4d0799b1ce05b07d9ed492c187a2b3c4",
"branchlen": 0,
"status": "active"
},
{
"height": 829613,
"hash": "0000000000000000000357088139cba6dc295875d7d3b2dd1fd764705727e451",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 827853,
"hash": "00000000000000000002c7de4016a0d09a47c19075cb73947e7f66e3461efd27",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 823226,
"hash": "0000000000000000000365e705dbbea406f6e383f510d400fa23e40eae71e056",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 822941,
"hash": "00000000000000000003aaaacecbebd40417c2e6c39b5774a8a212d5b324052b",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 819343,
"hash": "0000000000000000000262af3fb1dd3bc62ad5a119c48a57267a3b96145ce82c",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 818038,
"hash": "000000000000000000029afbc6cbd660df5548a90ca9202e80866c5c680f29e4",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 816358,
"hash": "00000000000000000001d5f92e2dbbfcbc1e859873117e7983dd574857da5e14",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 815570,
"hash": "000000000000000000024c1b977ae540b29e329ccfc3bbb37f3b0880c2336212",
"branchlen": 1,
"status": "headers-only"
},
{
"height": 815202,
"hash": "0000000000000000000093917031004a140b6db5c6adec217f814db98d7f0bde",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 813210,
"hash": "000000000000000000021c9f203786c0adcd7ae9a68a25d5e430d2a3dba613d5",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 811703,
"hash": "0000000000000000000270d5eed2457bf394e45f5035c1d721f4f3ccecbb2ba5",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 809478,
"hash": "000000000000000000006840568a01091022093a176d12a1e8e5e261e4f11853",
"branchlen": 1,
"status": "invalid"
},
{
"height": 807025,
"hash": "000000000000000000048d93a8093bd9b104cadd46957a6d14ba3ce6f2a29b9f",
"branchlen": 1,
"status": "headers-only"
},
{
"height": 804900,
"hash": "00000000000000000004c20bfe0ed1a9b714fbc07710531b8252dc998f9ccd67",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 803389,
"hash": "00000000000000000002ea858e57fc91ec34ae26a1d2a53720d7d4e08334fba2",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 800786,
"hash": "000000000000000000020e419bbdd75f21609d5a050a24bafe45b73a1574127d",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 797434,
"hash": "00000000000000000000fe9e3172a5d9ee3b815d952476a31056bc007657b83f",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 796038,
"hash": "0000000000000000000552fdbbe1edbff2887ea7879dc777b33f8cefc4ba665e",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 795426,
"hash": "000000000000000000045d66a7991b54de7e11776eed27e34df24a59b7de370e",
"branchlen": 1,
"status": "headers-only"
},
{
"height": 792379,
"hash": "000000000000000000032956cbfd8721abe0572d81542e75e38e6185312bee09",
"branchlen": 1,
"status": "valid-fork"
}
],
"error": null,
"id": "curltest"
}
getchaintxstats
Compute statistics about the total number and rate of transactions in the chain.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getchaintxstats",
"params": [
2016
]
}
Example response: 200
{
"result": {
"time": 1715113734,
"txcount": 12813254,
"window_final_block_hash": "b8a58707456a5410152f2613614dee646be44f8c6dc10033a44466be9388ec5a",
"window_block_count": 2016,
"window_tx_count": 2210,
"window_interval": 111369,
"txrate": 0.01984394221013029
},
"error": null,
"id": "curltest"
}
getdifficulty
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getdifficulty",
"params": []
}
Example response: 200
{
"result": 1.032323614195926,
"error": null,
"id": "curltest"
}
getmempoolancestors
If txid is in the mempool, returns all in-mempool ancestors.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempoolancestors",
"params": [
"mytxid"
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "parameter 1 must be of length 64 (not 6, for 'mytxid')"
},
"id": "curltest"
}
getmempooldescendants
If txid is in the mempool, returns all in-mempool descendants.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempooldescendants",
"params": [
"mytxid"
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "parameter 1 must be of length 64 (not 6, for 'mytxid')"
},
"id": "curltest"
}
getmempoolentry
Returns mempool data for given transaction
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempoolentry",
"params": [
"mytxid"
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "parameter 1 must be of length 64 (not 6, for 'mytxid')"
},
"id": "curltest"
}
getmempoolinfo
Returns details on the active state of the TX memory pool.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempoolinfo",
"params": []
}
Example response: 200
{
"result": {
"size": 0,
"bytes": 0,
"usage": 96,
"maxmempool": 300000000,
"mempoolminfee": 0.200000,
"minrelaytxfee": 0.200000
},
"error": null,
"id": "curltest"
}
getrawmempool
Returns all transaction ids in memory pool as a json array of string transaction ids.
Hint: use getmempoolentry to fetch a specific transaction from the mempool.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getrawmempool",
"params": [
true
]
}
Example response: 200
{
"result": {
"c588faa8996863f2a8942b6062e1e1aaa09cdfe35ad06cc8fae121cc6ede3602": {
"vsize": 110,
"weight": 437,
"time": 1712644562,
"height": 838416,
"descendantcount": 1,
"descendantsize": 110,
"ancestorcount": 1,
"ancestorsize": 110,
"wtxid": "9d07a7bb953f1fe80d433fe01bdfacf2d65e0669057fa3b1e2a54c4a208d8815",
"fees": {
"base": 0.00025000,
"modified": 0.00025000,
"ancestor": 0.00025000,
"descendant": 0.00025000
},
"depends": [],
"spentby": [],
"bip125-replaceable": true,
"unbroadcast": false
},
"5c238df91299ec97983908fa972f91a0381e8a92f1a1092533377bf25e8c8171": {
"vsize": 166,
"weight": 662,
"time": 1712644540,
"height": 838415,
"descendantcount": 1,
"descendantsize": 166,
"ancestorcount": 1,
"ancestorsize": 166,
"wtxid": "0c58d9a2f251c3e627ea39d7d6fcb638c810ab87f950d7da8c585aae858ea3ea",
"fees": {
"base": 0.00026316,
"modified": 0.00026316,
"ancestor": 0.00026316,
"descendant": 0.00026316
},
"depends": [],
"spentby": [],
"bip125-replaceable": false,
"unbroadcast": false
},
"ec2932b4f4672f12bc834c9c5c4ebd44e170699acae58c738e3df1636d1f7224": {
"vsize": 142,
"weight": 565,
"time": 1712644562,
"height": 838416,
"descendantcount": 1,
"descendantsize": 142,
"ancestorcount": 1,
"ancestorsize": 142,
"wtxid": "b8b924434fec53f21211a9e0bbac216ad994c27ee2f7a4f3187a3e8e0257330f",
"fees": {
"base": 0.00017040,
"modified": 0.00017040,
"ancestor": 0.00017040,
"descendant": 0.00017040
},
"depends": [],
"spentby": [],
"bip125-replaceable": true,
"unbroadcast": false
},
"6d15a02f2c92418f25232d8977c9de73c776d9f1b7d565b7726ccd0a97e21d4b": {
"vsize": 223,
"weight": 892,
"time": 1712644561,
"height": 838416,
"descendantcount": 1,
"descendantsize": 223,
"ancestorcount": 1,
"ancestorsize": 223,
"wtxid": "6d15a02f2c92418f25232d8977c9de73c776d9f1b7d565b7726ccd0a97e21d4b",
"fees": {
"base": 0.00025785,
"modified": 0.00025785,
"ancestor": 0.00025785,
"descendant": 0.00025785
},
"depends": [],
"spentby": [],
"bip125-replaceable": true,
"unbroadcast": false
},
"82aa5aa2fc593ad6699305f99e18145b9bfec58a740427fc6461512bc00be8ac": {
"vsize": 225,
"weight": 898,
"time": 1712644523,
"height": 838415,
"descendantcount": 1,
"descendantsize": 225,
"ancestorcount": 1,
"ancestorsize": 225,
"wtxid": "e2aad847b915700c85120d21dcba8a08508a66e93e467d03c8cd162d2814d243",
"fees": {
"base": 0.00023175,
"modified": 0.00023175,
"ancestor": 0.00023175,
"descendant": 0.00023175
},
"depends": [],
"spentby": [],
"bip125-replaceable": false,
"unbroadcast": false
},
...
gettxout
Returns details about an unspent transaction output.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "gettxout",
"params": [
"txid",
1
]
}
Example response: 200
{
"result": null,
"error": null,
"id": "curltest"
}
gettxoutproof
Returns a hex-encoded proof that “txid” was included in a block.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "gettxoutproof",
"params": [
[
"ee652f0b40209bd02468de0c6336854f5efdd79fb865560aef2c46f4fa0b4a07",
"cee11bc3bb3d9db8c4813ed2072a14369a15fcfb9e6bc5cb37a0b5bcc6aa59aa"
],
null
]
}
Example response: 200
{
"result": "000000202834abd71bdd0d3298542af4506918ea168ce002936b040000000000000000001da8757e4d756e848245cacf3e103c1b9f6ed2405c6d818a73172c8ec72856d4db3864606fdf0c17dcc1000ccb0300000cb86343fc64abcdab51e530303a4ee2b420fa6b5a12b435c9c76fe953ca5471ca074a0bfaf4462cef0a5665b89fd7fd5e4f8536630cde6824d09b20400b2f65eed9f744b2dc695b0ea0c4afd06310a21b93ddd7270a781acd0ada1afdd23b5750aa59aac6bcb5a037cbc56b9efbfc159a36142a07d23e81c4b89d3dbbc31be1cefe0bb7b0369ffc3b1d530e234987543a2613bbb8b06c86f993a930dee7b9d87f661ef556adc0174c7f180aa28006ee93ce2291302801ecd045c234c00b186ea35ff1e77eac3f113492e2eb12f38b9df452f5831f55c861865ac8f3c7dd06be2377f859ba1d12dea2ec44987796a27d42d5727250c1e0181d6a251f8272f21b9a2034069a2471de43de655619904d43b4665f6ce38741320998dc97838c32c79f1ada066ddf7a441357d55cc42a8906970bff2d5342be694002476733ff593af26f320c10df7ba9a76355438f462c040b598868dfb67c5e88d6d9a426ec8cdd74337d42df6b29e9fb319410848f3ff7228d00dc539e2962d185348ab9663a112a03ff6e00",
"error": null,
"id": "curltest"
}
preciousblock
Treats a block as if it were received before others with the same work.
A later preciousblock call can override the effect of an earlier one.
The effects of preciousblock are not retained across restarts.
Method: POST
https://xvg.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "preciousblock",
"params": [
"blockhash"
]
}
Example response: 200
{
"result": null,
"error": null,
"id": "curltest"
}