getbestblockhash
Returns the hash of the best (tip) block in the most-work fully-validated chain.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}
Example response: 200
{
"result": "93de73b7ad3172bf6e8af6233cf9baf68325337587fcc6df5c01a8e3884a617e",
"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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblock",
"params": [
"8250dac4a6d008e8b32c68feb9a7e465a3b0f943997ef1757220f0df7fac4975"
]
}
Example response: 200
{
"result": {
"hash": "8250dac4a6d008e8b32c68feb9a7e465a3b0f943997ef1757220f0df7fac4975",
"confirmations": 23,
"height": 4417486,
"version": 536870912,
"versionHex": "20000000",
"merkleroot": "76246f256b12cb8b62c6a1a3760bc6292b97bb588b3d725da9b7bc88d852bddd",
"time": 1734083944,
"mediantime": 1734083820,
"nonce": 0,
"bits": "1a06efce",
"difficulty": 2418566.518171779,
"chainwork": "0000000000000000000000000000000000000000000007745e528991305b1941",
"nTx": 2,
"hashStateRoot": "a03320c1b46c6de8a9efa13ca331b959da71878928a7d1288ad18b3f22ad4742",
"hashUTXORoot": "b638a7ca7502ccef3e3c86718ec83d41bb2025cde0b590f9da58078a8437b670",
"prevoutStakeHash": "f6255edb8725a0ba16424daa9faf90100522f65ff2a8776e6a31ec37f81c8254",
"prevoutStakeVoutN": 3,
"previousblockhash": "27b892aa5922afe2f900160502843c13fc6847b9fe70ec27b3793a44c546af59",
"nextblockhash": "b55aff6b06a3a6a94f2187c4a0349ea3f9917892e576b1c5a206b28c5f88c37d",
"flags": "proof-of-stake",
"proofhash": "00000088c2ac3bcf953144613862cd4c5882870e60186c2a8fad0926ef2b4720",
"modifier": "35af0bafd1c43df7786c5c98a10862b8e695f4adceb24fdc805cadea2fbb7674",
"signature": "20703be27159b1ff007e967f9e423eac7ce570a9bb472812d1ed8795a7766d9d89168251bcfe7b3e0fbce074a0a8a7e82e92cfdb9652afa073e3ba179797a40570",
"proofOfDelegation": "1fb3fd0c2d655a5e0f96c513096cf635892defa17b48c2c917e6acbcadd71994e93ff6fb7a56e008a91caadbbada2155c8ab2b44d9eb60497387929a8119da8db3",
"strippedsize": 634,
"size": 670,
"weight": 2572,
"tx": [
"194e677de6bdecbdd630698760cf273d8e1b9f9b2266041aec59fcad4bd64ddd",
"c7f1f2532b5d2c134a68b23e141211377e564b467b9cb549645d354681a4b0db"
]
},
"error": null,
"id": "curltest"
}
getblockchaininfo
Returns an object containing various state info regarding blockchain processing.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockchaininfo",
"params": []
}
Example response: 200
{
"result": {
"chain": "main",
"blocks": 4417508,
"headers": 4417508,
"bestblockhash": "93de73b7ad3172bf6e8af6233cf9baf68325337587fcc6df5c01a8e3884a617e",
"difficulty": 2495392.411792742,
"moneysupply": 105437252,
"time": 1734084648,
"mediantime": 1734084460,
"verificationprogress": 0.9999998733235853,
"initialblockdownload": false,
"chainwork": "0000000000000000000000000000000000000000000007746189f85c8437e021",
"size_on_disk": 7051992951,
"pruned": false,
"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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockcount",
"params": []
}
Example response: 200
{
"result": 4417508,
"error": null,
"id": "curltest"
}
getblockhash
Returns hash of block in best-block-chain at height provided.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockhash",
"params": [
1000
]
}
Example response: 200
{
"result": "00004773cd49a23f3b7e9f9abc11b646e71b6d0bcf876bb90e8bb3bf604737b0",
"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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockheader",
"params": [
"8250dac4a6d008e8b32c68feb9a7e465a3b0f943997ef1757220f0df7fac4975"
]
}
Example response: 200
{
"result": {
"hash": "8250dac4a6d008e8b32c68feb9a7e465a3b0f943997ef1757220f0df7fac4975",
"confirmations": 21,
"height": 4417486,
"version": 536870912,
"versionHex": "20000000",
"merkleroot": "76246f256b12cb8b62c6a1a3760bc6292b97bb588b3d725da9b7bc88d852bddd",
"time": 1734083944,
"mediantime": 1734083820,
"nonce": 0,
"bits": "1a06efce",
"difficulty": 2418566.518171779,
"chainwork": "0000000000000000000000000000000000000000000007745e528991305b1941",
"nTx": 2,
"hashStateRoot": "a03320c1b46c6de8a9efa13ca331b959da71878928a7d1288ad18b3f22ad4742",
"hashUTXORoot": "b638a7ca7502ccef3e3c86718ec83d41bb2025cde0b590f9da58078a8437b670",
"prevoutStakeHash": "f6255edb8725a0ba16424daa9faf90100522f65ff2a8776e6a31ec37f81c8254",
"prevoutStakeVoutN": 3,
"previousblockhash": "27b892aa5922afe2f900160502843c13fc6847b9fe70ec27b3793a44c546af59",
"nextblockhash": "b55aff6b06a3a6a94f2187c4a0349ea3f9917892e576b1c5a206b28c5f88c37d",
"flags": "proof-of-stake",
"proofhash": "00000088c2ac3bcf953144613862cd4c5882870e60186c2a8fad0926ef2b4720",
"modifier": "35af0bafd1c43df7786c5c98a10862b8e695f4adceb24fdc805cadea2fbb7674",
"signature": "20703be27159b1ff007e967f9e423eac7ce570a9bb472812d1ed8795a7766d9d89168251bcfe7b3e0fbce074a0a8a7e82e92cfdb9652afa073e3ba179797a40570",
"proofOfDelegation": "1fb3fd0c2d655a5e0f96c513096cf635892defa17b48c2c917e6acbcadd71994e93ff6fb7a56e008a91caadbbada2155c8ab2b44d9eb60497387929a8119da8db3"
},
"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://qtum.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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getchaintips",
"params": []
}
Example response: 200
{
"result": [
{
"height": 4417505,
"hash": "929141993dd379fac4fe83432e715de9d5d7d5fb17cfe0a59beaf8592fe2b1b3",
"branchlen": 0,
"status": "active"
},
{
"height": 4417446,
"hash": "8681bfe450ae4d88b5b80f43e127d84a5d9d7168b9032f3f099421249b7f8ed8",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4417358,
"hash": "e7c044f22750c3520821dc703cd02619ca087ec694f4f45f95660e7bd1881feb",
"branchlen": 1,
"status": "headers-only"
},
{
"height": 4417189,
"hash": "f16d40ceaee4b0d3019f6139c2e9e64c4ef5609d40dca339799d2185aef03ccb",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4417130,
"hash": "72282bd99a3e0db9fb4268642cddcfa692cd5ab2b37d22e0aa7e9af9e1c43757",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4417026,
"hash": "3776f145a3469e3f4f3716af4b261bfadc6c1741519733a915cdeb34b359cddf",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4416949,
"hash": "d5d2ea69f9a9b85942eb2cec5b7eef699a21d2f73d181570e00ee0e4a5b457ec",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416892,
"hash": "2cbde772244956b2af0052f76a36fac93569f31fa127c7d6ad39538facd4f62b",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4416769,
"hash": "eba684f49a13c8f8eb110b9c672061731e29e2e3e1e502d6dd304c497ba1e466",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4416711,
"hash": "44bc2e52650b16e6ea5c38c623d0b45679a872a3053f496546b8f200106a541d",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416709,
"hash": "2d370ecbc40cf1a81421fb96ac48df7f6ec4a631b45334146e72f25434ff34e6",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416639,
"hash": "8c96fe6998e2ae98ecc092d8d0275032b89f0c29ba0d80f155f57677ac312eea",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416568,
"hash": "6b59776fe46d3ff9e1096b70b646d07bc307175ddafe04b8f563948d90478a40",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416538,
"hash": "34f3d2d3511b2eb95ff516fa716a5b60564c2c2c2a86dde7648ef5751eac6042",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416476,
"hash": "44de4c33d639626954ca80d968e9b710d3d18ba2197f14d4b2c5b50ef626b29d",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416419,
"hash": "b29e2d2b8aee475aed79307ee169486edf6b8ce5e393e83ddbf19956942ccbe5",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416318,
"hash": "48fcebf2467fb3b69f144afae2abba8ea6019dec67955ff9d5d97e9c4aa98498",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4416175,
"hash": "38a128e24d651f893afac1cbcde827cf435b1a61ace63f73dfaf648df5237028",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416165,
"hash": "125090de118c7c5aa02f3adf87e8e4e5b77999cafc96420b387329b43bd0186a",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416151,
"hash": "fcbd3ee7497801a1d7328a88c92e8f48e57fecfa7de1bba12d08cccbe357af34",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416049,
"hash": "0c611f42668ed24282ed87c9eb5eb8db8748af0be35194cff3c5da16e5d9dfc2",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416025,
"hash": "976a7c09ccc4afdca35f09f30b7a802c2f63ac4f63363323d08bd88c006f3dff",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4416021,
"hash": "3c4d60c43086c5ce33d9d477b0192b07141cfe0d7e8fabc63ffac02333a83931",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4415782,
"hash": "a2cbadde089a8278b3028fee4b2f7109b89b8bb4e7701cc8e2fd521862d54c51",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4415681,
"hash": "961a5c8e6659b2fce529bfee90d8d0c21c471a7837630022aed418f49a3131bb",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 4415615,
"hash": "dbdcd9abaed50b3d8e301677fa96b685d0a2cb53d28f55e9d497830a93e93c0e",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 4415573,
"hash": "a41e7201f219dc900436b9afff3e1176d04d960a2b8c7771aa9149eca09beb44",
"branchlen": 1,
"status": "valid-headers"
}
],
"error": null,
"id": "curltest"
}
getchaintxstats
Compute statistics about the total number and rate of transactions in the chain.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getchaintxstats",
"params": [
2016
]
}
Example response: 200
{
"result": {
"time": 1734084516,
"txcount": 13219053,
"window_final_block_hash": "929141993dd379fac4fe83432e715de9d5d7d5fb17cfe0a59beaf8592fe2b1b3",
"window_final_block_height": 4417505,
"window_block_count": 2016,
"window_tx_count": 4252,
"window_interval": 64540,
"txrate": 0.06588162379919429
},
"error": null,
"id": "curltest"
}
getdifficulty
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getdifficulty",
"params": []
}
Example response: 200
{
"result": {
"proof-of-work": 1.52587890625e-05,
"proof-of-stake": 2635641.739363895
},
"error": null,
"id": "curltest"
}
getmempoolancestors
If txid is in the mempool, returns all in-mempool ancestors.
Method: POST
https://qtum.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://qtum.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://qtum.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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempoolinfo",
"params": []
}
Example response: 200
{
"result": {
"loaded": true,
"size": 0,
"bytes": 0,
"usage": 48,
"total_fee": 0.00000000,
"maxmempool": 2000000000,
"mempoolminfee": 0.00400000,
"minrelaytxfee": 0.00400000,
"incrementalrelayfee": 0.00010000,
"unbroadcastcount": 0,
"fullrbf": false
},
"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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getrawmempool",
"params": [
true
]
}
Example response: 200
{
"result": {},
"error": null,
"id": "curltest"
}
gettxout
Returns details about an unspent transaction output.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "gettxout",
"params": [
"txid",
1
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "txid must be of length 64 (not 4, for 'txid')"
},
"id": "curltest"
}
gettxoutproof
Returns a hex-encoded proof that “txid” was included in a block.
Method: POST
https://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "gettxoutproof",
"params": [
[
"194e677de6bdecbdd630698760cf273d8e1b9f9b2266041aec59fcad4bd64ddd",
"c7f1f2532b5d2c134a68b23e141211377e564b467b9cb549645d354681a4b0db"
],
null
]
}
Example response: 200
{
"result": "0000002059af46c5443a79b327ec70feb94768fc133c8402051600f9e2af2259aa92b827ddbd52d888bcb7a95d723d8b58bb972b29c60b76a3a1c6628bcb126b256f247668055c67ceef061a000000004247ad223f8bd18a28d1a728898771da59b931a33ca1efa9e86d6cb4c12033a070b637848a0758daf990b5e0cd2520bb413dc88e71863c3eefcc0275caa738b654821cf837ec316a6e77a8f25ff622051090af9faa4d4216baa02587db5e25f6030000008220703be27159b1ff007e967f9e423eac7ce570a9bb472812d1ed8795a7766d9d89168251bcfe7b3e0fbce074a0a8a7e82e92cfdb9652afa073e3ba179797a405701fb3fd0c2d655a5e0f96c513096cf635892defa17b48c2c917e6acbcadd71994e93ff6fb7a56e008a91caadbbada2155c8ab2b44d9eb60497387929a8119da8db30200000002dd4dd64badfc59ec1a0466229b9f1b8e3d27cf60876930d6bdecbde67d674e19dbb0a48146355d6449b59c7b464b567e371112143eb2684a132c5d2b53f2f1c70107",
"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://qtum.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "preciousblock",
"params": [
"blockhash"
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "blockhash must be of length 64 (not 9, for 'blockhash')"
},
"id": "curltest"
}