getbestblockhash
Returns the hash of the best (tip) block in the most-work fully-validated chain.
Method: POST
https://doge.nownodes.io
Example body (raw)
{"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}
Example response: 200
{
"result": "afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f",
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblock",
"params": [
"afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f"
]
}
Example response: 200
{
"result": {
"hash": "afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f",
"confirmations": 1,
"strippedsize": 3831,
"size": 3831,
"weight": 15324,
"height": 5177592,
"version": 6422788,
"versionHex": "00620104",
"merkleroot": "baa0829ee1c26139721372dd3f043966f8fd602a0886149ae41e195ad0b7fd19",
"tx": [
"2485bdf10a1aef0f97d7dea6cf09d8ca2a8cc45f6afee765042382d311951467",
"44c8cc99b7e72258b3c9361cfa5aa86d3ed0d54bf7ef9184a5683e84895e7492",
"9c6512ad2a075b669121ffb35bc78516bbee58a55dcaa4d5d202a84e7b52aac5",
"9d2ba91c9b58bfa38faf18a70a6dd062e871167817ca7436e1e875458c4433d8",
"3db7e53bc784ede6388aa40db43236ba2224797c12fff7bb612b077d3c9df435",
"ee8834311ce7c775c1dd0ea31f367f204f9ddd91b484ffcd9b074b476cd8321f",
"c489d9885ee57f085f88ba12706bf5ba2dacb8d3b49522ca51d29bd6cad2bc4a",
"2d884e28ffcfd5c31bebc2216620c305edf8b1949e95245acc314f42345e3da0",
"dc66cc066c4960b921f7792fc7d383bdb89afcb52d20f0d7748c31f411a54f87",
"c14d5f865f2f16d115918066477f35e13f6a8eb6dfa580691f7ba0eb69c0bb5b",
"930dab89baa78508c5ed8a7446ce263d96e9eb04c773bf2ce8554f1d574bd770",
"3c10fb7fc45689cf91ab6f9158a44e7e0c412aead7e45d7c3d1af8afc2d53efa",
"acc6902b6fdc3ebfd7ae89cd7a3b265f26ce1af1efbbe1f0f318d071c21a8581"
],
"time": 1713522090,
"mediantime": 1713521772,
"nonce": 0,
"bits": "1a0150bf",
"difficulty": 12754124.96154605,
"chainwork": "00000000000000000000000000000000000000000000104d3ff9b2ad8e98a410",
"auxpow": {
"tx": {
"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff5803e5bf2804c44522660cfabe6d6dafb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f01000000000000006ffc42cb5389e05d714000001565663637383066356137383930653434363031333100000000020000000000000000266a24aa21a9ed6c8b556a36445dc9577605badbbb2d29c63acdf3f0fe3a2ef4a510ded14c43c3824a5525000000001976a914a8064f7f4f31fdd983d0d991773b62cd1a716cc788ac00000000",
"txid": "4471c6e0b0a2feec8a2c7126ae718a79c4ef9ca7f81fc2d34c6d4a4747eac59e",
"hash": "4471c6e0b0a2feec8a2c7126ae718a79c4ef9ca7f81fc2d34c6d4a4747eac59e",
"size": 220,
"vsize": 220,
"version": 1,
"locktime": 0,
"vin": [
{
"coinbase": "03e5bf2804c44522660cfabe6d6dafb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f01000000000000006ffc42cb5389e05d7140000015656636373830663561373839306534343630313331",
"sequence": 0
}
],
...
getblockchaininfo
Returns an object containing various state info regarding blockchain processing.
Method: POST
https://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockchaininfo",
"params": []
}
Example response: 200
{
"result": {
"chain": "main",
"blocks": 5177593,
"headers": 5177593,
"bestblockhash": "ece36af9a2060a35b737f206f08dd4bd517ddbd92772ab7ba86c54b44afca1ff",
"difficulty": 12970329.72230742,
"mediantime": 1713521779,
"verificationprogress": 0.9999991586689004,
"initialblockdownload": false,
"chainwork": "00000000000000000000000000000000000000000000104d40bf9ccd31a16ab3",
"size_on_disk": 155297952754,
"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": 1462060800,
"timeout": 1493596800,
"since": 1703520
}
},
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockcount",
"params": []
}
Example response: 200
{
"result": 5177596,
"error": null,
"id": "curltest"
}
getblockhash
Returns hash of block in best-block-chain at height provided.
Method: POST
https://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockhash",
"params": [
1000
]
}
Example response: 200
{
"result": "6da6ef0eb0e2e1e150ed44c43f596b9552b221a4dda207535eca9c0ddb7a10d0",
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockheader",
"params": [
"afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f"
]
}
Example response: 200
{
"result": {
"hash": "afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f",
"confirmations": 8,
"height": 5177592,
"version": 6422788,
"versionHex": "00620104",
"merkleroot": "baa0829ee1c26139721372dd3f043966f8fd602a0886149ae41e195ad0b7fd19",
"time": 1713522090,
"mediantime": 1713521772,
"nonce": 0,
"bits": "1a0150bf",
"difficulty": 12754124.96154605,
"chainwork": "00000000000000000000000000000000000000000000104d3ff9b2ad8e98a410",
"previousblockhash": "6933b8f0f920bc618d0058f6eb5f1121281de3c6862c5ebb65a0602cf4a26982",
"nextblockhash": "ece36af9a2060a35b737f206f08dd4bd517ddbd92772ab7ba86c54b44afca1ff"
},
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getblockstats",
"params": [
1000,
[
"minfeerate",
"avgfeerate"
]
]
}
Example response: 200
{
"result": null,
"error": {
"code": -8,
"message": "hash must be hexadecimal string (not '')"
},
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getchaintips",
"params": []
}
Example response: 200
{
"result": [
{
"height": 5177601,
"hash": "b282a057a8ca74a2b6f329094b7cd8533b5b822a0ae0196ba4216166af25f846",
"branchlen": 0,
"status": "active"
},
{
"height": 5177597,
"hash": "37232ef12da1ae7b90d5acf5b1612234ecda022519c70b4910db1e8a68520350",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 5177244,
"hash": "aeebd3655f85e467b499a1263dfab13f98811c72ef5b9810e1f09485eb4f0db7",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 5177172,
"hash": "ac6cf3f69b8fed193da3f4aefa0b698e584f16dc7ba11f71cfd0c0498cc3596a",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 5175831,
"hash": "2c4d2b5f270b0fcc68ad895d0a8522e6c8dcf1327ee0cabd5e29de8c4d2bb34e",
"branchlen": 1,
"status": "valid-headers"
},
{
"height": 5175721,
"hash": "a619ab3ef259bce605ee526fca0eca94e80ebbfa5159bdd0341d2516463bb029",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 5175273,
"hash": "2587169beee0ae365d384ec2fb38923aa56fe5f33485d5a80b1374f4394444fa",
"branchlen": 1,
"status": "valid-fork"
},
{
"height": 5174948,
"hash": "f52fddc4925af8c4817175fcb60d0a34c1f9e3e9b2f4341db91a0de1a851eaa8",
"branchlen": 1,
"status": "valid-fork"
},
...
getdifficulty
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
Method: POST
https://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getdifficulty",
"params": []
}
Example response: 200
{
"result": 14313170.91997865,
"error": null,
"id": "curltest"
}
getmempoolancestors
If txid is in the mempool, returns all in-mempool ancestors.
Method: POST
https://doge.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://doge.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://doge.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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmempoolinfo",
"params": []
}
Example response: 200
{
"result": {
"size": 16479,
"bytes": 4408197,
"usage": 21435200,
"maxmempool": 2000000000,
"mempoolminfee": 0.00000000
},
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getrawmempool",
"params": [
true
]
}
Example response: 200
{
"result": {
"e07e96362f67fe410c6d40751cefdc9c6665d54714ca5c485f3fca878d1d1d9e": {
"size": 463,
"fee": 0.01368000,
"modifiedfee": 0.01368000,
"time": 1713477547,
"height": 5176907,
"startingpriority": 0,
"currentpriority": 0,
"descendantcount": 7,
"descendantsize": 2528,
"descendantfees": 8628000,
"ancestorcount": 1,
"ancestorsize": 463,
"ancestorfees": 1368000,
"depends": []
},
"778456243cb92b6b125e71baf1669fff627e9e9592f7215fe41abd2001fb8891": {
"size": 224,
"fee": 0.01052000,
"modifiedfee": 0.01052000,
"time": 1713477547,
"height": 5176907,
"startingpriority": 0,
"currentpriority": 0,
"descendantcount": 6,
"descendantsize": 2065,
"descendantfees": 7260000,
"ancestorcount": 2,
"ancestorsize": 687,
"ancestorfees": 2420000,
"depends": [
"e07e96362f67fe410c6d40751cefdc9c6665d54714ca5c485f3fca878d1d1d9e"
]
},
"3731c2d3171cc8efdeef40e1e8d14caf92b476aa71dd17880be700cb12ad1799": {
"size": 464,
"fee": 0.01368000,
"modifiedfee": 0.01368000,
"time": 1713477547,
"height": 5176907,
"startingpriority": 0,
"currentpriority": 0,
"descendantcount": 5,
"descendantsize": 1841,
"descendantfees": 6208000,
"ancestorcount": 3,
"ancestorsize": 1151,
"ancestorfees": 3788000,
"depends": [
"778456243cb92b6b125e71baf1669fff627e9e9592f7215fe41abd2001fb8891"
]
},
...
gettxout
Returns details about an unspent transaction output.
Method: POST
https://doge.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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "gettxoutproof",
"params": [
[
"44c8cc99b7e72258b3c9361cfa5aa86d3ed0d54bf7ef9184a5683e84895e7492",
"9c6512ad2a075b669121ffb35bc78516bbee58a55dcaa4d5d202a84e7b52aac5"
],
null
]
}
Example response: 200
{
"result": null,
"error": {
"code": -1,
"message": "JSON value is not a string as expected"
},
"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://doge.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "preciousblock",
"params": [
"afb60f45a503923682819beaaab237f0b3e0314d95fdd09dbb892f08a1660b9f"
]
}
Example response: 200
{
"result": null,
"error": null,
"id": "curltest"
}