Blockchain RPCs

getbestblockhash

Returns the hash of the best (tip) block in the most-work fully-validated chain.

Method: POST

https://xec.nownodes.io

Example body (raw)

{"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}

Example response: 200

{
    "result": "00000000000000001a7598cdb3de0e46abceb4c55c35deb3ff51540fd485d62c",
    "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblock",
    "params": [
        "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
    ]
}

Example response: 200

{
    "result": {
        "hash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
        "confirmations": 842484,
        "height": 1000,
        "version": 1,
        "versionHex": "00000001",
        "merkleroot": "fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33",
        "time": 1232346882,
        "mediantime": 1232344831,
        "nonce": 2595206198,
        "bits": "1d00ffff",
        "difficulty": 1,
        "chainwork": "000000000000000000000000000000000000000000000000000003e903e903e9",
        "nTx": 1,
        "previousblockhash": "0000000008e647742775a230787d66fdf92c46a48c896bfbc85cdc8acc67e87d",
        "nextblockhash": "00000000a2887344f8db859e372e7e4bc26b23b9de340f725afbf2edb265b4c6",
        "size": 216,
        "tx": [
            "fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33"
        ]
    },
    "error": null,
    "id": "curltest"
}

getblockchaininfo

Returns an object containing various state info regarding blockchain processing.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblockchaininfo",
    "params": []
}

Example response: 200

{
    "result": {
        "chain": "main",
        "blocks": 843483,
        "headers": 843483,
        "bestblockhash": "00000000000000001a7598cdb3de0e46abceb4c55c35deb3ff51540fd485d62c",
        "difficulty": 36589419185.19339,
        "time": 1715004191,
        "mediantime": 1715002725,
        "verificationprogress": 0.9999720014386982,
        "initialblockdownload": false,
        "chainwork": "0000000000000000000000000000000000000000016d4cd14d6ba93a98cb8bc4",
        "size_on_disk": 173560536942,
        "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblockcount",
    "params": []
}

Example response: 200

{
    "result": 843483,
    "error": null,
    "id": "curltest"
}

getblockhash

Returns hash of block in best-block-chain at height provided.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblockhash",
    "params": [
        1000
    ]
}

Example response: 200

{
    "result": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
    "error": null,
    "id": "curltest"
}

getblockheader

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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblockheader",
    "params": [
        "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
    ]
}

Example response: 200

{
    "result": {
        "hash": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09",
        "confirmations": 842484,
        "height": 1000,
        "version": 1,
        "versionHex": "00000001",
        "merkleroot": "fe28050b93faea61fa88c4c630f0e1f0a1c24d0082dd0e10d369e13212128f33",
        "time": 1232346882,
        "mediantime": 1232344831,
        "nonce": 2595206198,
        "bits": "1d00ffff",
        "difficulty": 1,
        "chainwork": "000000000000000000000000000000000000000000000000000003e903e903e9",
        "nTx": 1,
        "previousblockhash": "0000000008e647742775a230787d66fdf92c46a48c896bfbc85cdc8acc67e87d",
        "nextblockhash": "00000000a2887344f8db859e372e7e4bc26b23b9de340f725afbf2edb265b4c6"
    },
    "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblockstats",
    "params": [
        1000,
        [
            "minfeerate",
            "avgfeerate"
        ]
    ]
}

Example response: 200

{
    "result": {
        "avgfeerate": 0.00,
        "minfeerate": 0.00
    },
    "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getchaintips",
    "params": []
}

Example response: 200

{
    "result": [
        {
            "height": 843483,
            "hash": "00000000000000001a7598cdb3de0e46abceb4c55c35deb3ff51540fd485d62c",
            "branchlen": 0,
            "status": "active"
        },
        {
            "height": 843384,
            "hash": "000000000000000017038bb67df28392be6187861a07d074ead98b9a42f74886",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 843230,
            "hash": "00000000000000000b4f0678b64857f45cf8a982872fced6a09026411a7fe906",
            "branchlen": 1,
            "status": "parked"
        }
    ],
    "error": null,
    "id": "curltest"
}

getchaintxstats

Compute statistics about the total number and rate of transactions in the chain.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getchaintxstats",
    "params": [
        2016
    ]
}

Example response: 200

{
    "result": {
        "time": 1715004191,
        "txcount": 298406978,
        "window_final_block_hash": "00000000000000001a7598cdb3de0e46abceb4c55c35deb3ff51540fd485d62c",
        "window_final_block_height": 843483,
        "window_block_count": 2016,
        "window_tx_count": 26872,
        "window_interval": 1136563,
        "txrate": 0.0236432120348806
    },
    "error": null,
    "id": "curltest"
}

getdifficulty

Returns the proof-of-work difficulty as a multiple of the minimum difficulty.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getdifficulty",
    "params": []
}

Example response: 200

{
    "result": 36589419185.19339,
    "error": null,
    "id": "curltest"
}

getmempoolancestors

If txid is in the mempool, returns all in-mempool ancestors.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getmempoolancestors",
    "params": [
        "mytxid"
    ]
}

Example response: 200

{
    "result": null,
    "error": {
        "code": -5,
        "message": "Transaction not in mempool"
    },
    "id": "curltest"
}

getmempooldescendants

If txid is in the mempool, returns all in-mempool descendants.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getmempooldescendants",
    "params": [
        "mytxid"
    ]
}

Example response: 200

{
    "result": null,
    "error": {
        "code": -5,
        "message": "Transaction not in mempool"
    },
    "id": "curltest"
}

getmempoolentry

Returns mempool data for given transaction

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getmempoolentry",
    "params": [
        "mytxid"
    ]
}

Example response: 200

{
    "result": null,
    "error": {
        "code": -5,
        "message": "Transaction not in mempool"
    },
    "id": "curltest"
}

getmempoolinfo

Returns details on the active state of the TX memory pool.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getmempoolinfo",
    "params": []
}

Example response: 200

{
    "result": {
        "loaded": true,
        "size": 77,
        "bytes": 87802,
        "usage": 198416,
        "total_fee": 1192.78,
        "maxmempool": 2000000000,
        "mempoolminfee": 10.00,
        "minrelaytxfee": 10.00,
        "unbroadcastcount": 0
    },
    "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getrawmempool",
    "params": [
        true
    ]
}

Example response: 200

{
    "result": {
        "888f7586b19b6f238b1a38f4edda1455fbd22141b96d33db6e7f5708fd7ee39f": {
            "fees": {
                "base": 6.94,
                "modified": 6.94
            },
            "size": 344,
            "time": 1715004206,
            "height": 843482,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "9c67fe4653478a26efa203b787070ec2e8d3e81f73e06e984d93b1029c3983cb": {
            "fees": {
                "base": 21.02,
                "modified": 21.02
            },
            "size": 2102,
            "time": 1715004217,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "52905e6790659b0ec9de06867a06d2fdffdbf66e2ce6911a435e97cd2e6b0090": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 479,
            "time": 1715004492,
            "height": 843483,
            "depends": [],
            "spentby": [
                "394ce34d620833372867d26e04fb563c22bd9611e2a360445f934cb8b777de22",
                "5fca32171e8a5464a3c4442ff3a521b894a7949be0aac29f95596d79846ded65"
            ],
            "unbroadcast": false
        },
        "394ce34d620833372867d26e04fb563c22bd9611e2a360445f934cb8b777de22": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715004516,
            "height": 843483,
            "depends": [
                "52905e6790659b0ec9de06867a06d2fdffdbf66e2ce6911a435e97cd2e6b0090"
            ],
            "spentby": [
                "2317ec468af686c81490f6770ce06ddf716562037c2ea445271983f6f27120ac"
            ],
            "unbroadcast": false
        },
        "2317ec468af686c81490f6770ce06ddf716562037c2ea445271983f6f27120ac": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715004644,
            "height": 843483,
            "depends": [
                "394ce34d620833372867d26e04fb563c22bd9611e2a360445f934cb8b777de22"
            ],
            "spentby": [
                "517082e4031bc6a7c9beab3126299a24066a710c4e6e69e73a8a6a444a404af5"
            ],
            "unbroadcast": false
        },
        "517082e4031bc6a7c9beab3126299a24066a710c4e6e69e73a8a6a444a404af5": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 479,
            "time": 1715004705,
            "height": 843483,
            "depends": [
                "2317ec468af686c81490f6770ce06ddf716562037c2ea445271983f6f27120ac"
            ],
            "spentby": [
                "22b86c903ad9e69065e5062974f873a29d9bb81590bda51df06a06da588ce719"
            ],
            "unbroadcast": false
        },
        "d8dd12a0bf153bfa4bdf36380de37211680027b10a64550cf05284f7885278d7": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2357,
            "time": 1715006699,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "38dbb95fb2a0b417834ea2984d72074acc72c9a63c7db6eeab1433335b6d0e19": {
            "fees": {
                "base": 4.08,
                "modified": 4.08
            },
            "size": 372,
            "time": 1715004821,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "22b86c903ad9e69065e5062974f873a29d9bb81590bda51df06a06da588ce719": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 479,
            "time": 1715004869,
            "height": 843483,
            "depends": [
                "517082e4031bc6a7c9beab3126299a24066a710c4e6e69e73a8a6a444a404af5"
            ],
            "spentby": [
                "fabe16d4a9f372a4686fcc2dd1796f4426ccba8ab5a764ff657659190ed0e1f0"
            ],
            "unbroadcast": false
        },
        "da3f7ea15e5d31e6701ef6fe33046c3a6eebb0d616baaed75eba22f3969a6f7a": {
            "fees": {
                "base": 7.92,
                "modified": 7.92
            },
            "size": 393,
            "time": 1715006978,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "086e167c5e8502be91416c7d79707df91d28bb535d35c4712125282f8b714b07": {
            "fees": {
                "base": 4.38,
                "modified": 4.38
            },
            "size": 372,
            "time": 1715005045,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "0197b4e67caff5f4c563ba2b64803309e151364a2f921e932b7bea9d2f249020": {
            "fees": {
                "base": 2.26,
                "modified": 2.26
            },
            "size": 226,
            "time": 1715005099,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "5dbf09be9e1a58f1d30b60c9cdc6b5cd29582109ec4e25654b9935610a286c71": {
            "fees": {
                "base": 11.37,
                "modified": 11.37
            },
            "size": 480,
            "time": 1715005139,
            "height": 843483,
            "depends": [],
            "spentby": [
                "52ca6dabdb917582dd56714152e62678a8b4ff8e1a635d82f9fc6aa779fc3eb5"
            ],
            "unbroadcast": false
        },
        "46faebabc46fe1d22850bc84a40c8a03c51d795bde6af9366ef63879f66d2bd2": {
            "fees": {
                "base": 7.00,
                "modified": 7.00
            },
            "size": 700,
            "time": 1715005176,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "6253c43896df89a74193d0db7e5934dcd9e9e73ecd2a29d728165ca5ccfde8ff": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2356,
            "time": 1715006941,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "286319f4c0c2393709fac6c23e947fe54006327ad710f834a789cbb42e62ec31": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2352,
            "time": 1715006483,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "fabe16d4a9f372a4686fcc2dd1796f4426ccba8ab5a764ff657659190ed0e1f0": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715005251,
            "height": 843483,
            "depends": [
                "22b86c903ad9e69065e5062974f873a29d9bb81590bda51df06a06da588ce719"
            ],
            "spentby": [
                "5fca32171e8a5464a3c4442ff3a521b894a7949be0aac29f95596d79846ded65"
            ],
            "unbroadcast": false
        },
        "2e38ede94e0c380ed94c05f172a7e697aee0faac598ed0325f7a9885dd067412": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 226,
            "time": 1715005265,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "eb80fc25155f17091247e7e2bb38ca51b076db8fa03380765125aec73fa3b036": {
            "fees": {
                "base": 2.26,
                "modified": 2.26
            },
            "size": 225,
            "time": 1715005293,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "ccded428633b60aafaa6a58f980b7b1452bab66246f8394779d3315c1fb414ea": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2354,
            "time": 1715006883,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "3d2d34463d2b30b950e038998c28f2a060108cc9091799fe1937a5f7beca1317": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 225,
            "time": 1715005336,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "80c5ddde1b884c5010688fe6fd46bb10f1ba4330b80d04fc80bd313be8c86ea1": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 225,
            "time": 1715005402,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "07f78f7f63abd96d660d27bfd78ee0fbea793a034909c1e08c258a4d42e4244f": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 226,
            "time": 1715005448,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "ef28253f24c13d939a0ceaf0e4c93b1bb61f291efb30491820aebc5ba8165024": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715005634,
            "height": 843483,
            "depends": [
                "5fca32171e8a5464a3c4442ff3a521b894a7949be0aac29f95596d79846ded65"
            ],
            "spentby": [
                "95f17dcb87354140d52b7e3341341450b238b6407516c41a742ea8b0679da301"
            ],
            "unbroadcast": false
        },
        "f9d1a0fca0f7ab84afcf79cfa313267a78d59b0bbf0b43e773fd92aff1175ea0": {
            "fees": {
                "base": 2.26,
                "modified": 2.26
            },
            "size": 226,
            "time": 1715005458,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "06bc796eb5d00e52ee220ae508a841113c7543943c110242d9ef7b4062e53729": {
            "fees": {
                "base": 4.97,
                "modified": 4.97
            },
            "size": 246,
            "time": 1715005495,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "bbcdc9bc57923689ee94bb00a918ca6803b237d8e426e50294396c056007f876": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 225,
            "time": 1715005539,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "523d157d90aa9a52e118914c6fa0e02d78593c1b66ed911c13c078eea57f54db": {
            "fees": {
                "base": 2.26,
                "modified": 2.26
            },
            "size": 225,
            "time": 1715005578,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "78b95c3d7e91d1196e6d502e477f291d22016e2590b225b2619e25620d7a1bc8": {
            "fees": {
                "base": 7.52,
                "modified": 7.52
            },
            "size": 373,
            "time": 1715005588,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "3d422864189c7f8851f8a5e6b56e4447a4a1f507483c4c929184b2c70d805ca1": {
            "fees": {
                "base": 4.99,
                "modified": 4.99
            },
            "size": 248,
            "time": 1715005614,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "5fca32171e8a5464a3c4442ff3a521b894a7949be0aac29f95596d79846ded65": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715005632,
            "height": 843483,
            "depends": [
                "52905e6790659b0ec9de06867a06d2fdffdbf66e2ce6911a435e97cd2e6b0090",
                "fabe16d4a9f372a4686fcc2dd1796f4426ccba8ab5a764ff657659190ed0e1f0"
            ],
            "spentby": [
                "ef28253f24c13d939a0ceaf0e4c93b1bb61f291efb30491820aebc5ba8165024"
            ],
            "unbroadcast": false
        },
        "6a716dfd9c646109f9ecc9fa8bf26f4d54f66ee4a9a68ec57c6d2ee9d926cd88": {
            "fees": {
                "base": 2.19,
                "modified": 2.19
            },
            "size": 219,
            "time": 1715005797,
            "height": 843483,
            "depends": [],
            "spentby": [
                "f658b52a4d9ed8597256023e07d887e6ca677e333f62f4f3149a0fb3faf6e3c0"
            ],
            "unbroadcast": false
        },
        "361be7b17b8761379b634fc3e3f77ea441176a39966011c5562b8b3c9bd92efe": {
            "fees": {
                "base": 224.00,
                "modified": 224.00
            },
            "size": 1484,
            "time": 1715006018,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "f658b52a4d9ed8597256023e07d887e6ca677e333f62f4f3149a0fb3faf6e3c0": {
            "fees": {
                "base": 1.85,
                "modified": 1.85
            },
            "size": 185,
            "time": 1715006021,
            "height": 843483,
            "depends": [
                "6a716dfd9c646109f9ecc9fa8bf26f4d54f66ee4a9a68ec57c6d2ee9d926cd88"
            ],
            "spentby": [],
            "unbroadcast": false
        },
        "898d6f4658a5091db55c8c5942a93aa700f5d196104ee7823ff46805d339fd97": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2356,
            "time": 1715007023,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "eea7f41ff51c200ec0362bb217771ad750f4345f066c0838b5c08b4afdd5b5be": {
            "fees": {
                "base": 4.99,
                "modified": 4.99
            },
            "size": 247,
            "time": 1715006030,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "0d1668e40930e4ebfdfe542f8f14d0ee78846876b48a997be928955280418db3": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006500,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "64f4ebb40ea303737286ce1d894d9f7816a591b16db80717ed6085a9ff8f9d15": {
            "fees": {
                "base": 5.51,
                "modified": 5.51
            },
            "size": 226,
            "time": 1715006105,
            "height": 843483,
            "depends": [],
            "spentby": [
                "a1302eea666ecbc687458e9aef81b4bbdff61cc10d79e96bd6950fe1f03869e6"
            ],
            "unbroadcast": false
        },
        "a1302eea666ecbc687458e9aef81b4bbdff61cc10d79e96bd6950fe1f03869e6": {
            "fees": {
                "base": 5.51,
                "modified": 5.51
            },
            "size": 225,
            "time": 1715006105,
            "height": 843483,
            "depends": [
                "64f4ebb40ea303737286ce1d894d9f7816a591b16db80717ed6085a9ff8f9d15"
            ],
            "spentby": [],
            "unbroadcast": false
        },
        "608358ca09acea4a909d96ddec5d50e50f2519a692d7fa099238d9135f03ee1d": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 226,
            "time": 1715006107,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "6cd55676d540c0286b9e38a30ec91ba8ebb47c793133c1d3995cb2c4538371ef": {
            "fees": {
                "base": 10.00,
                "modified": 10.00
            },
            "size": 404,
            "time": 1715006184,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "52ca6dabdb917582dd56714152e62678a8b4ff8e1a635d82f9fc6aa779fc3eb5": {
            "fees": {
                "base": 11.37,
                "modified": 11.37
            },
            "size": 479,
            "time": 1715006248,
            "height": 843483,
            "depends": [
                "5dbf09be9e1a58f1d30b60c9cdc6b5cd29582109ec4e25654b9935610a286c71"
            ],
            "spentby": [],
            "unbroadcast": false
        },
        "95f17dcb87354140d52b7e3341341450b238b6407516c41a742ea8b0679da301": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715006249,
            "height": 843483,
            "depends": [
                "ef28253f24c13d939a0ceaf0e4c93b1bb61f291efb30491820aebc5ba8165024"
            ],
            "spentby": [
                "501f360550e3a505d5de884b7951f6ae57622cf09ae16404a39b21644683afba"
            ],
            "unbroadcast": false
        },
        "501f360550e3a505d5de884b7951f6ae57622cf09ae16404a39b21644683afba": {
            "fees": {
                "base": 4.81,
                "modified": 4.81
            },
            "size": 480,
            "time": 1715006258,
            "height": 843483,
            "depends": [
                "95f17dcb87354140d52b7e3341341450b238b6407516c41a742ea8b0679da301"
            ],
            "spentby": [],
            "unbroadcast": false
        },
        "ae823cb54afa0cd51d587a0560392c8b5dd27b9734e6d029a91e9467cc4da7a4": {
            "fees": {
                "base": 2.25,
                "modified": 2.25
            },
            "size": 225,
            "time": 1715006372,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "beac5346de5227b0ce7c6a21d231d14ed483d6c1998ce69231f6fd759db30d9c": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006843,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "e0a582780a54ab824433e725b32c9ab0da401d8e1291f6d6acaa96e86112710b": {
            "fees": {
                "base": 3.86,
                "modified": 3.86
            },
            "size": 192,
            "time": 1715006405,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "327453938f9d6cc1d7aa9e1f2b390ee08c998024b873ff208b38f27579dd1e93": {
            "fees": {
                "base": 2.48,
                "modified": 2.48
            },
            "size": 240,
            "time": 1715006440,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "0232d925eff9eb506902df19dee9d3a7a6b8a3b97723f5b54dde3cf19b1d6406": {
            "fees": {
                "base": 8.71,
                "modified": 8.71
            },
            "size": 432,
            "time": 1715006871,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "03025e6dce4f6c3e1d0e94383d7ab3f8341934433191641f7ac68b6007d087a5": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2358,
            "time": 1715006860,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "130e62f11ad96ff29afc320ccb424c5c2bcfd534b2adadcebc56b00094535c0b": {
            "fees": {
                "base": 17.13,
                "modified": 17.13
            },
            "size": 850,
            "time": 1715006446,
            "height": 843483,
            "depends": [],
            "spentby": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "unbroadcast": false
        },
        "d514a1e2e320745706b843ec08cca2da093caaebc71cf5c78a6a8e2456be3c8a": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2351,
            "time": 1715006457,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "cbb8297922f71c329f92418e3d54bfe45415a1bf1ef8a81780257e894056a5eb": {
            "fees": {
                "base": 22.14,
                "modified": 22.14
            },
            "size": 2211,
            "time": 1715006517,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "5f9f4ba75f7af85471ac663bfa61f231af0d462f3e33aba7cfcd055e595d4c86": {
            "fees": {
                "base": 22.14,
                "modified": 22.14
            },
            "size": 2205,
            "time": 1715006533,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "e541e930e52f4804e3c03bd3f586fc758360eaf08576308541f560568f5ad78f": {
            "fees": {
                "base": 22.14,
                "modified": 22.14
            },
            "size": 2208,
            "time": 1715006554,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "b59d5273d2c28782d80533b3250c1b87e4fcdfa2b506a43b3b87c0b0b178e7b1": {
            "fees": {
                "base": 20.66,
                "modified": 20.66
            },
            "size": 2059,
            "time": 1715006576,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "dc4f2e76ca5f0c68ce91b6627ce8cc97ff38b22b49e9ce35b2e21ab15df308ab": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006821,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "c93e4053495925356f916f804c940556587e64753af0de82287f45cad0583148": {
            "fees": {
                "base": 4.55,
                "modified": 4.55
            },
            "size": 225,
            "time": 1715006581,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "cc1c93e26883733090b6e9e5c7d72b08ca25a7a0fd9765103eef6a3920e406c7": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006678,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "890d5138e765a92e2997e4caa2071cfba4d2c9404261d6baa0395f2ea4148a20": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2353,
            "time": 1715006593,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "f982704466becbbd8cf42a2698c2226ebb1662bafb1bb4dd3afeff77fa04297c": {
            "fees": {
                "base": 7.52,
                "modified": 7.52
            },
            "size": 374,
            "time": 1715006597,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1": {
            "fees": {
                "base": 22.80,
                "modified": 22.80
            },
            "size": 1131,
            "time": 1715006617,
            "height": 843483,
            "depends": [
                "06bc796eb5d00e52ee220ae508a841113c7543943c110242d9ef7b4062e53729",
                "07f78f7f63abd96d660d27bfd78ee0fbea793a034909c1e08c258a4d42e4244f",
                "130e62f11ad96ff29afc320ccb424c5c2bcfd534b2adadcebc56b00094535c0b",
                "2e38ede94e0c380ed94c05f172a7e697aee0faac598ed0325f7a9885dd067412",
                "3d2d34463d2b30b950e038998c28f2a060108cc9091799fe1937a5f7beca1317",
                "3d422864189c7f8851f8a5e6b56e4447a4a1f507483c4c929184b2c70d805ca1",
                "608358ca09acea4a909d96ddec5d50e50f2519a692d7fa099238d9135f03ee1d"
            ],
            "spentby": [
                "9ca624663a26d32212253071ac4240c60a55385c7882c09259c807538d517cc3"
            ],
            "unbroadcast": false
        },
        "61a1243c907fd46882143c0532fed5eff260ef67e4121169410cbf25f4d9e223": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2352,
            "time": 1715006618,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "36ceb5d8cc0b3a5830b3e77701368505e9f5ed1cf7e91137a926b9575c1ab2b2": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2356,
            "time": 1715006638,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "0ffe8dabc4c6cc02910410841d10515f853ca8d0544b76ad992af380cf516f2e": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2357,
            "time": 1715006654,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "9ca624663a26d32212253071ac4240c60a55385c7882c09259c807538d517cc3": {
            "fees": {
                "base": 9.91,
                "modified": 9.91
            },
            "size": 244,
            "time": 1715006658,
            "height": 843483,
            "depends": [
                "061e323d6213e06ec58440b9cee127f565c9c1a06063abff0688fe1a1806c0b1"
            ],
            "spentby": [],
            "unbroadcast": false
        },
        "f6e60b7908d6eda4a6d6f0fc58c8be523c3fcab393cda12548a15a597ded0d12": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2354,
            "time": 1715006718,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "6992b6177e4a7c165b3df3de39a097cb9374d047bf1e2bdb2086788651fb4e57": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006742,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "311005bc8bcb9aeab766319afc609fe0eca50c1498f7dc71a07cec4790926672": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2356,
            "time": 1715006759,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "c7393e455686db4c48385c868ca016cbb51ff03a897eafcb642c7a9287797435": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2354,
            "time": 1715006779,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "e6411d90dc5f3183812931b0ae999e9b2481ff3501ded501ecf63eef11bcb595": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2353,
            "time": 1715006799,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "f24f9d2eef7709b651540076d5a18100de78e4a803e13864695dd56a182bbc33": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2355,
            "time": 1715006904,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "066f92e81ae950f2fc064968cb037dc8d43cbd0ffc90d335428ba6029a84e441": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2356,
            "time": 1715006925,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "e618b20cb30a68884f73f430eb879b81bafbe56980dbabb68020bf9301e5821f": {
            "fees": {
                "base": 5.94,
                "modified": 5.94
            },
            "size": 192,
            "time": 1715006956,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "03975c32f3a4b64e5565d2dcabbfd4639f267cd535a468fbaf7e8b728a0b91b2": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2354,
            "time": 1715006961,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "e32874c6e27ee01e877ea2ce5835b034299f5a081df8072b054738649c44ded1": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2352,
            "time": 1715006984,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "04275a085dabed48e3b1ed86abbd4776597bd44c1504da2dfe725a101c3cf1d7": {
            "fees": {
                "base": 23.62,
                "modified": 23.62
            },
            "size": 2352,
            "time": 1715007005,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        },
        "aa4747b06f8788e231c8675992cd39ea5a4647fdd97a4272f7171051cffebb1d": {
            "fees": {
                "base": 8.59,
                "modified": 8.59
            },
            "size": 426,
            "time": 1715007039,
            "height": 843483,
            "depends": [],
            "spentby": [],
            "unbroadcast": false
        }
    },
    "error": null,
    "id": "curltest"
}

gettxout

Returns details about an unspent transaction output.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "gettxout",
    "params": [
        "txid",
        1
    ]
}

Example response: 200

{
    "result": {
        "bestblock": "000000000000000013c437a13fe9404956001818e03a7b848d1497c7446b5f47",
        "confirmations": 3,
        "value": 1000031.37,
        "scriptPubKey": {
            "asm": "OP_HASH160 d37c4c809fe9840e7bfa77b86bd47163f6fb6c60 OP_EQUAL",
            "hex": "a914d37c4c809fe9840e7bfa77b86bd47163f6fb6c6087",
            "reqSigs": 1,
            "type": "scripthash",
            "addresses": [
                "ecash:prfhcnyqnl5cgrnmlfmms675w93ld7mvvqd0y8lz07"
            ]
        },
        "coinbase": true
    },
    "error": null,
    "id": "curltest"
}

gettxoutproof

Returns a hex-encoded proof that “txid” was included in a block.

Method: POST

https://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "gettxoutproof",
    "params": [
        [
            "ee652f0b40209bd02468de0c6336854f5efdd79fb865560aef2c46f4fa0b4a07",
            "cee11bc3bb3d9db8c4813ed2072a14369a15fcfb9e6bc5cb37a0b5bcc6aa59aa"
        ],
        null
    ]
}

Example response: 200

{
    "result": null,
    "error": {
        "code": -5,
        "message": "Transaction not yet in block"
    },
    "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://xec.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "preciousblock",
    "params": [
        "blockhash"
    ]
}

Example response: 200

{
    "result": null,
    "error": null,
    "id": "curltest"
}

Last updated