Blockchain RPCs

getbestblockhash

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

Method: POST

https://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": "53db5c5af9bc8d8a51b8cfc21467643e17796c30d2bf9a89f7096d20650021dd",
    "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://ltc-testnet.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "getblock",
    "params": [
        "53db5c5af9bc8d8a51b8cfc21467643e17796c30d2bf9a89f7096d20650021dd"
    ]
}

Example response: 200

{
    "result": {
        "hash": "53db5c5af9bc8d8a51b8cfc21467643e17796c30d2bf9a89f7096d20650021dd",
        "confirmations": 1,
        "strippedsize": 592,
        "size": 1019,
        "weight": 2621,
        "height": 3235724,
        "version": 536870912,
        "versionHex": "20000000",
        "merkleroot": "dfdee64458c356e8c0ca5a4cf4e7fadd3bd6aeed1ce209e1244343ae96e9113b",
        "tx": [
            "ac77bc337acbccd5cf9e16cc3cc53e5e758772ea7092aa33a482dbe5f8fbe560",
            "2512cc99c9319cd95445d81e85a60af0c760df113ef296a4271aa6f7cc6f7fd5",
            "aa7d9a5f1b5b5853c5022139519914e2859ea2d8a2bb4ede29fe048d7ed1eed3"
        ],
        "time": 1713444184,
        "mediantime": 1713443457,
        "nonce": 2012741712,
        "bits": "1d11b6ab",
        "difficulty": 0.05645310649294713,
        "chainwork": "00000000000000000000000000000000000000000000000000c3aaae3f94c2de",
        "nTx": 3,
        "mweb": {
            "hash": "6b59f8dbd1ccb5e9ed1ffe3d0168be006c2f373457b794413db8a6f9ef3a4a4a",
            "height": 3235724,
            "kernel_offset": "2add0b76fccfe27d38d8200c337648b1a6e2a8be824742a90daeec9c63b3e876",
            "stealth_offset": "0000000000000000000000000000000000000000000000000000000000000000",
            "num_kernels": 0,
            "num_txos": 4713,
            "kernel_root": "0000000000000000000000000000000000000000000000000000000000000000",
            "output_root": "be2054f05511c2742675d03545ae6219bd2b8dcd4bc23ea1fedfbf67484934b5",
            "leaf_root": "be40441f6cd5885e3c65b1b03bb35f48721dd64b0a82b169866435c237248ba4",
            "inputs": [],
            "outputs": [],
            "kernels": []
        },
        "previousblockhash": "3aa122a86a17da5c56e0818e09df1c158de1104a56c1a3a4e98b29b1f429aca3"
    },
    "error": null,
    "id": "curltest"
}

getblockchaininfo

Returns an object containing various state info regarding blockchain processing.

Method: POST

https://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "chain": "test",
        "blocks": 3235725,
        "headers": 3235725,
        "bestblockhash": "1311daf286855a81cfbe210a750a7ebedf3447fe48302bee05d8e8a69909d53c",
        "difficulty": 0.05645310649294713,
        "mediantime": 1713443476,
        "verificationprogress": 0.9999998615215239,
        "initialblockdownload": false,
        "chainwork": "00000000000000000000000000000000000000000000000000c3aaae4e088747",
        "size_on_disk": 4364277747,
        "pruned": false,
        "softforks": {
            "bip34": {
                "type": "buried",
                "active": true,
                "height": 76
            },
            "bip66": {
                "type": "buried",
                "active": true,
                "height": 76
            },
            "bip65": {
                "type": "buried",
                "active": true,
                "height": 76
            },
            "csv": {
                "type": "buried",
                "active": true,
                "height": 6048
            },
            "segwit": {
                "type": "buried",
                "active": true,
                "height": 6048
            },
            "taproot": {
                "type": "bip8",
                "bip8": {
                    "status": "active",
                    "start_height": 2225664,
                    "timeout_height": 2435328,
                    "since": 2241792
                },
                "height": 2241792,
                "active": true
            },
            "mweb": {
                "type": "bip8",
                "bip8": {
                    "status": "active",
                    "start_height": 2209536,
                    "timeout_height": 2419200,
                    "since": 2215584
                },
                "height": 2215584,
                "active": true
            }
        },
        "warnings": "Warning: unknown new rules activated (versionbit 2)"
    },
    "error": null,
    "id": "curltest"
}

getblockcount

Returns the height of the most-work fully-validated chain.

The genesis block has height 0.

Method: POST

https://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

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

getblockhash

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

Method: POST

https://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": "1fa9415bb84e0199ca2776656b9058c5cf5481ca8325c4803fcd3783081f7e82",
    "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://ltc-tesnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "hash": "ea5f168ae8a819fc6db65f5d9eb9422e1c43f92c9b84354648de2362da72c78d",
        "confirmations": 2,
        "height": 2669997,
        "version": 536870912,
        "versionHex": "20000000",
        "merkleroot": "28d658aea7c442509d98056ef2eee60f4f8b897359a08a007200988d07cfb6cf",
        "time": 1713433719,
        "mediantime": 1713432789,
        "nonce": 1293427022,
        "bits": "1975fde5",
        "difficulty": 36400009.58827753,
        "chainwork": "0000000000000000000000000000000000000000000010e3ccd1f1acab7ae6ac",
        "nTx": 132,
        "mweb_header": {
            "hash": "bb0a3afb2f8d94f0056fd6855b99d76103617c70c0305e67ed8ed08c41c58747",
            "height": 2669997,
            "kernel_offset": "b8880f90ae912520633450e29754602233b7f908dc1faaaa122c0d8a7e63ae19",
            "stealth_offset": "0000000000000000000000000000000000000000000000000000000000000000",
            "num_kernels": 0,
            "num_txos": 50137,
            "kernel_root": "0000000000000000000000000000000000000000000000000000000000000000",
            "output_root": "32ac23ad7d3984ad25115cd4b5fd8b0a5a09f14ec5f0c87cf32b48983ace54fc",
            "leaf_root": "27a38c1746573d6596927d6f9edd392608db41a2e858750b1daaac902c362e30"
        },
        "mweb_amount": 2920737704148,
        "prev_mweb_amount": 2920737704148,
        "previousblockhash": "b64016167a9b5fc4365adf2113e22d4800f6c73839c1a9f9bb3efbda0b1bd629",
        "nextblockhash": "6cc56d5ec9f114734f1536f78c262e813500251e682dcc80f934ead32be4a5db"
    },
    "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://ltc.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://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": [
        {
            "height": 2669998,
            "hash": "6cc56d5ec9f114734f1536f78c262e813500251e682dcc80f934ead32be4a5db",
            "branchlen": 0,
            "status": "active"
        },
        {
            "height": 2667189,
            "hash": "1b68fd65ac5149b80f12d7d100ed37d2249e9c7e43ff6fa57511f657e611200b",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2664746,
            "hash": "9391f2b8f36baa756d461c81cd2e15d4130ddb3db162d915e8dd47fe1b91433d",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2664124,
            "hash": "c61969a000bed871635aaffc785a7004484de52b8d58cfde8569406b860780de",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2663393,
            "hash": "638cbe51bdb0f812210a4d251fc83ada0b37d31fff98689edacf0fd54db93c8f",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2663170,
            "hash": "97371203de9acf8c76eb71cf91bb6a74cf8610c5d8c0bef5117567accb04bbe7",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2663095,
            "hash": "da01cb526256c9415d0767e9aff2b5f103d5db207686a1bc25592081438eba03",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2662489,
            "hash": "4e8a7344985eedcaf0c1b75f76a8e92a71dccdc55d363b00e25249afb5ee157b",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2660076,
            "hash": "43d5968ee384ecf95ac9af7fa12cdf39049df49bad528d9afe01d0fb360daa55",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2659653,
            "hash": "19f3ffe90f44507bd9ca82d6a4b7aebae298fc1350724ffbcae63036dc08489c",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2658713,
            "hash": "720a41dbc8e08f9a846c40c222b3790e44c5c6165cf93d79573149409c23ee4e",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2657640,
            "hash": "862a9434004f9be1303dcf4136304ebd70664097ac6a19428628e2e4abb75de2",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2657600,
            "hash": "4d316b2e22f35ef686b0a327224c908d4dec3aad84db339a92ea6855ff9f1ab8",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2653400,
            "hash": "56b9a107c7766a6e927bc28eebe75020a99562787509a2b2d8666c63abc2f6f3",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2651900,
            "hash": "ecad2e899be6cd593098dcababb0b5c8f0fd5d0b7076d77ddfa2a4c59b620f7c",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2647641,
            "hash": "cb823b3ad650cf8af03a6ad57360891a7ce60ba53c30193602c894e4a9fa0565",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2645610,
            "hash": "20503b399263f26c422304dd650d526b03b7d0db95fca4d623c127b42ff3f3a8",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2643618,
            "hash": "3196e640c842a8be1fc297718143eeabd1ebf5dd30e26264fd3cb6c893c6abbf",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2639078,
            "hash": "89f24acead2b6941d9412348637d0e5ff7eb7eb276236a221db97343d712a276",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2637944,
            "hash": "69ff3794e0ee2a8c1a0837f62bd128a50ff04a4e018e0bb912ff3a1c0311f134",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2637462,
            "hash": "45f65aac359433108905e34c596a2ce7e5fbc245bb98ffe209969fcb2a84685b",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2636636,
            "hash": "3287202aea3d04f826b6a8e27a1001c69df6eb46657a27a327d5ca2cd5450aa5",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2634360,
            "hash": "28cc884a56eca4b448bdae587226a7222ddbb62ec22a3fcc2377ab09b06e9018",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2632930,
            "hash": "9a287b08fab00ca6eba70018832aa29d25f4ed6bf201f4b426478dbcf55a850e",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2622195,
            "hash": "5226d84b44d14f5ce1f312167bb1061af565597430ee54bd2b62076ee02f8f96",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2622116,
            "hash": "d69d3444bd5862bf7f82bb78c85dee6df2a96317f224b802014eabd7394e4eeb",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2619982,
            "hash": "7a34b34138ef24bf31e2114195ffb7657db7e37fdc213c189d467d0af938ca51",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2618892,
            "hash": "6fb200e1b5c2720680adf98090e6314ad6802c19c445b0bcaa2f660f79d40006",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2617521,
            "hash": "b0b6f04d76a6b08f2b4e53d46526aeac6f2cd6cfb88dae4bb8381d4c1aaa034d",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2615527,
            "hash": "44e8b8b6475cc244b94a7580cf2209e95e14c2c86c5c9bd61c281b6d363d0dce",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2611541,
            "hash": "a320b24d4616b706db06b218c4422670268297e1b5a2d16085a408dc47d87bae",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2609494,
            "hash": "831795de266bde314247ea59221358d42fbc0d2ec6175dfbdf31459389636127",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2609321,
            "hash": "4fc78c9683b8986b4e501b9a21624b5f8ce906a18d6dcd3f21381ee37958cd20",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2608757,
            "hash": "859b7540e8353fd0d497181b2a5cebe556f28a4c38d6d6f7ae18493798acb99d",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2604491,
            "hash": "f7d04538eed9bf2d7ec689b3d90fc6c346b7a92a03e55a84366d6057f17cf484",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2601747,
            "hash": "d0e44745a20e39f906288f386483182c683030e5b7c5830801c63468083757a5",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2601533,
            "hash": "c0314960a31b5459a7e181f80a4dd8dea0ca3d99af4d5caeeeacdd0fc9a5e151",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2600308,
            "hash": "6673d7b3aa25d426594e676c996ae9276eee86160f8d1b53a14a1e3142211905",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2596290,
            "hash": "d2c19f6da98190a75383b08084f2185a6fcef36a4249abd0ae7990e128990c8d",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2594954,
            "hash": "b1f4658f718ac2f84ba69eb4acc7debc90b9fa03f8d2b0e798828215671068a9",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2593491,
            "hash": "1128e616feebc5d5badeb6fe960eafd51c87742736ad7a04b470b25d4ae95dec",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2590117,
            "hash": "2169da09d312ba30dc0f60f3628ac2f028afd39602631f7b3bc4e5e3adf20a2b",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2585333,
            "hash": "e8cfbc1dd1810895f2fc644020732e75a275965a26f1a54e3dce09fe49d3f22f",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2574483,
            "hash": "7b8c1f08bcf080479d137bb193394a4bd29a68a8e014e18b313f5cbcd6099f89",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2574079,
            "hash": "24eee680699c77dca64fb73afedf9720d96591f1c37bb4b467427e7400c82099",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2572069,
            "hash": "adafb04c4194d9b69e58ad62a7d2581d465ac1434cea27f8b2626981e2cf9917",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2570731,
            "hash": "6631da9db53a24c9aab5e65f94e3e0586f506159c0af312505ccb2809d5d6af4",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2567401,
            "hash": "2f9b4046d05f43c72cae13c3e606e3507724dcfeeeb01b37f7c2b7602605aa40",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2566994,
            "hash": "f94e0abb94b91d1743b8fe909a3956d55a25e4957ebb9958b0e39f8caf0ec47c",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2562136,
            "hash": "e9549cb4205ce9ce127235e8c854c1948cd8934ab4f7aca9a9ffdf3603a2fea9",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2558987,
            "hash": "3a3a1c9319e07313f11b9afc08ac08fb533eaf36b392c4bf3cdd9d44e6e9572a",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2556899,
            "hash": "43de62f09cc10958f8cefb69bfee5650e090a6d95a853387b24fcd9100bf96cc",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2555068,
            "hash": "596c446af9c306888b6e456a6945e98832f93aca90a8268fff502e69ee50fb79",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2553886,
            "hash": "c5e7f05ec53068af4915454a61a01ac6b4bdafce8a76a2aacdf8ea47f0247a80",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2551051,
            "hash": "24fb43abeee3b28f3498e8975df099633860fbdd6f17f0bae1e5f6f48c5bec2f",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2550298,
            "hash": "28a1b7b8fa48e9edf1af66db3377ca200fe359db2e832e1b38e5bf55fefe0afb",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2548776,
            "hash": "3c3708b717005557ab12e3214e13dc034d682a0559133cc37dbc3af60e3dda7e",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2547862,
            "hash": "a3baa2ca78ecd1125501e7921d761a7fe9642dd57126ea89bbb2f0ea6626155b",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2544638,
            "hash": "7c54c37158eebb47038bae9e51e2bc5a583aff17152afd330a207f95d51bed28",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2542825,
            "hash": "bc5c197dcfb9528b97185675e243c239338c0954516b89189a9e4bd9b5a9b3e6",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2540861,
            "hash": "f9e88151e5e131235e3c1567ed9a5b28ae0a6d0e1a05aee14e705e8ae97f82a6",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2539601,
            "hash": "45e32436fc0755ae3687c26e6b1cb9aaa0913748a7949f986ca463810f617cd2",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2539015,
            "hash": "142fbca2c5cd8ba87a5e65e4252c792d86cae4e31281c41c2de1e27e1a38a941",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2538162,
            "hash": "44822a0e6d6e4fe815afd89255c6081b760e0d50c28f5036b425e4f0e050faeb",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2529614,
            "hash": "97c8f0ca1d4043df70143069be381791d1e1aa7fa040d2fdb92cbcc2637e4054",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2525769,
            "hash": "0e099ccef4985d62de67db9713379a21c1ac66e3a76f016cb1f7949cc21298fd",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2517442,
            "hash": "8a2657390682b5d803514a851cfc3b6c864b7870a129cfedf74e420f896309f5",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2516720,
            "hash": "670b5d840b5695ea08a6c2da7b9b9cc2609d041017530a87de32c8a8ed17276d",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2509543,
            "hash": "99ab0c83e276622ce363b2994a9ae7c7fff758b973dd8da7da591c511c633720",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2506507,
            "hash": "3710d3545ff498c771f2bf6cdaab05b41c64a4498f6328b0dfb2f35245e614c6",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2504967,
            "hash": "19ebff36c21c6da074e3e60ac09d7e5279f1891a61dc7939545f2d77152415c0",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2500658,
            "hash": "5bef6fc0712b002b0caedaee952b0ee05e81001c03fa031fff311b3b5b7fdde3",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2499420,
            "hash": "99379a7965ece70f5c338e438dccb814b462cd773898bc6e46554144f570de01",
            "branchlen": 1,
            "status": "valid-headers"
        },
        {
            "height": 2496266,
            "hash": "12874f08f5cfbbd6a61b16613cf6b1bd1322da6b3098b8ddabc5d18efed7d334",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2495260,
            "hash": "67862148560f0bfdfeb7d7ba8e423cf5866181b5182a009323f169c687ebc6f6",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2494495,
            "hash": "c46f0010d3ec3217f373522de3227d261903bc9c159ce3723d5b4dd246773560",
            "branchlen": 1,
            "status": "valid-fork"
        },
        {
            "height": 2493218,
            "hash": "0463e36524f5fec66641a21f19d959f3e797b4aa5c6190cc3206a33117cb185f",
            "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://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "time": 1713434138,
        "txcount": 239209040,
        "window_final_block_hash": "b702f0ce92ebb6d75707b28b478fabdccf7b794ca03fe5f845d9c3d448c751bf",
        "window_final_block_height": 2669999,
        "window_block_count": 2016,
        "window_tx_count": 555493,
        "window_interval": 305381,
        "txrate": 1.819016245280486
    },
    "error": null,
    "id": "curltest"
}

getdifficulty

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

Method: POST

https://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

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

getmempoolancestors

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

Method: POST

https://ltc-testnet.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://ltc-testnet.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://ltc-testnet.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://ltc-testnet.nownodes.io

Example body (raw)

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

Example response: 200

{
    "result": {
        "loaded": true,
        "size": 123,
        "bytes": 111456,
        "usage": 587072,
        "maxmempool": 300000000,
        "mempoolminfee": 0.00001000,
        "minrelaytxfee": 0.00001000,
        "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://ltc-testnet.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://ltc-testnet.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://ltc-testnet.nownodes.io

Example body (raw)

{
    "jsonrpc": "1.0",
    "id": "curltest",
    "method": "gettxoutproof",
    "params": [
        [
            "cfe79378a24b231b7f646a670549be1a7203038e74b2a19c23470df0450907ee",
            "e91c0a120eec8aa0c34bca96d2ead57d7de4d73ea1cd0861f5c3799819c12f51"
        ],
        null
    ]
}

Example response: 200

{
    "result": "0000002029d61b0bdafb3ebbf9a9c13938c7f600482de21321df5a36c45f9b7a161640b6cfb6cf078d980072008aa05973898b4f0fe6eef26e05989d5042c4a7ae58d62877ec2066e5fd75194e21184d8400000009ee070945f00d47239ca1b2748e0303721abe4905676a647f1b234ba27893e7cf512fc1199879c3f56108cda13ed7e47d7dd5ead296ca4bc3a08aec0e120a1ce9a3f8a1a393f57967eb3b5858f8029b527ac18cf026d1c554eaa5c1888b514b840b9081f6dbe46d1c00a60a76fbff084fce08f6c6e3ea6a4cdf2e6e5f5fa063eb79fe950ef88fd4d0f8bfc501288b72a56d0353ccfd575a051cd557b745ba0f9776445c2216cee069e9e1e344af02d7b5094fc19d52a878bf1db4dae0a132593456b15e19a4e5350971727fa01ba085b9d3c03d1346498ae4cc686040eea889ccc98e804636954d54990d60e924dedefd70f01b7c0cb3f64bcba407dd9d4ee243fac985bf12212445cb429ce23cff29172040f6206e4f2187ee0ee7b47b08636e03ff0300",
    "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://ltc-testnet.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