Transaction Related Methods

hmy_getStakingTransactionByBlockHashAndIndex

Get staking transaction at an index from a given block, specified by block hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc":"2.0",
    "method":"hmyv2_getStakingTransactionByBlockHashAndIndex",
    "params":[
        "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        0
    ],
    "id":1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "tx index 0 greater than or equal to number of transactions on block 0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9"
    }
}

hmy_getStakingTransactionByBlockNumberAndIndex

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc":"2.0",
    "method":"hmyv2_getStakingTransactionByBlockNumberAndIndex",
    "params":[
        56994030,
        0
    ],
    "id":1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "tx index 0 greater than or equal to number of transactions on block 0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9"
    }
}

hmy_getStakingTransactionByHash

Get staking transaction by its hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getStakingTransactionByHash",
    "params": [
        "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": null
}

hmy_getCurrentTransactionErrorSink

hmy_getCurrentTransactionErrorSink

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getCurrentTransactionErrorSink",
    "params": [],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "error-message": "replaced transaction, new transaction 0x2842100260dca4b9378724f0e29a297c2f760e27960f8af227513aeb596059bc has same nonce & higher price",
            "time-at-rejection": 1714373020,
            "tx-hash-id": "0x3d8f119833a0dd2b5d59ed6b2662fb45e9ed38190f69d2c5de6d31e91d04fda0"
        },
        {
            "error-message": "replaced transaction, new transaction 0x621aad5d9d14451621055fb6f97eab0a9f47d58c1a3cba7801f8f89cdb514318 has same nonce & higher price",
            "time-at-rejection": 1714373021,
            "tx-hash-id": "0x655e03d6a2979666dcaeaaa997aa4dc595934a2c7b42c16a9b8d92b5edbb9068"
        },
        {
            "error-message": "replaced transaction, new transaction 0xe05e39a537bc0e6a2a8211f03b5c78a58c83cfdb7159dac8505c5fee99e82d55 has same nonce & higher price",
            "time-at-rejection": 1714373021,
            "tx-hash-id": "0x621aad5d9d14451621055fb6f97eab0a9f47d58c1a3cba7801f8f89cdb514318"
        },
        {
            "error-message": "replaced transaction, new transaction 0x2065aa8e492c63c667b9b4d99f2b6f95d4fbdaf4ed8220d1ef63c22b8b2dac17 has same nonce & higher price",
            "time-at-rejection": 1714373021,
            "tx-hash-id": "0xe05e39a537bc0e6a2a8211f03b5c78a58c83cfdb7159dac8505c5fee99e82d55"
        },
        {
            "error-message": "replaced transaction, new transaction 0xd734b089a6e138dbc88edb737841f5c959bd7f62e1d34954ecef895861ba2d24 has same nonce & higher price",
            "time-at-rejection": 1714373021,
            "tx-hash-id": "0x2842100260dca4b9378724f0e29a297c2f760e27960f8af227513aeb596059bc"
        },
        {
            "error-message": "existing transaction price was not bumped enough: replacement transaction underpriced",
            "time-at-rejection": 1714373025,
            "tx-hash-id": "0x02f53e9bddddaf5eb3ccc3971cf256f8dd9895f19a561cc46ed5c775be596773"
        },
        {
            "error-message": "existing transaction price was not bumped enough: replacement transaction underpriced",
            "time-at-rejection": 1714373029,
            "tx-hash-id": "0xfd707c16e220ec940612473769980fd8caaa74d60f43f3d9606a597a63942cd5"
        },
        {
            "error-message": "replaced transaction, new transaction 0xdea26a7e63a66d760758434be891169532e6389cd638513ae4ce2cc7f21ba2a8 has same nonce & higher price",
            "time-at-rejection": 1714373074,
            "tx-hash-id": "0xc34bf12692b3be0ef53515f33c914cfb50d25bac0cb01da5c9004892319ca2a9"
        },
        {
            "error-message": "replaced transaction, new transaction 0x87c047c2375d5c033bac6c02d1826c534840891a1b3cce2c27c54db4bb090f38 has same nonce & higher price",
            "time-at-rejection": 1714373096,
            "tx-hash-id": "0xe63fc74ae94b2b662e8727a48753a711d931e5a95a9d69d3abd635f9b8b96b2d"
        },
...

hmy_getPendingCXReceipts

Array of pending cx receipts in tx pool. See hmy_getCXReceiptByHash for format

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getPendingCXReceipts",
    "params": [],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "commitBitmap": "/////////////////////////////////wE=",
            "commitSig": "ydfy5Em3musmrhG1x2jnh4WEHIce+YFu+MNWwQP034NZtnzyIIEZ/n7RLG4X8+4IijhdxuvzSeXz85nwjkAA+BCQtI8iKSwvYv4FtKwjxyxDXXbAgqjJN/q5hP3VztkG",
            "header": {
                "difficulty": "0x0",
                "epoch": 1838,
                "extraData": "0x",
                "gasLimit": "0x1c9c380",
                "gasUsed": "0x52d8",
                "hash": "0x35085621651dea51b4f80349e6fca077b80242a2d19a281f859878a7ab12d744",
                "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
                "miner": "0xa27461aa6303204a8d7c2239bb4ad16edca6e9c6",
                "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "nonce": "0x0000000000000000",
                "number": "0x36af266",
                "parentHash": "0xdcb7ba54236284441499c522dcea69d28884cb2e08f0a31797e0e15df9504122",
                "receiptsRoot": "0x40103a957cd857058971b525ac0b091c6e04e9f1c0bca2139e0a74dd38b4d2cb",
                "sha3Uncles": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "shardID": 1,
                "stateRoot": "0x0291b8f750057e2b26796497870f91f879d6d28754ca6c0a39b194e2b211e08f",
                "timestamp": "0x65e99085",
                "transactionsRoot": "0x92d713601e150eefb3b27f6d6a64d691edab21db67f672893a72cfe2368405fe",
                "viewID": 57345989
            },
            "merkleProof": {
                "blockHash": "0x35085621651dea51b4f80349e6fca077b80242a2d19a281f859878a7ab12d744",
                "blockNum": 57340518,
                "receiptHash": "0x743630d265c99e6cbbe637cbb7a5688402e5126444844e34b1549fca0d48859c",
                "shardHashes": [
                    "0x24b8d2ca4593e0f036b220bf8877b4d04f93d1e66b2877cf4d8171c904435eab"
                ],
                "shardID": 1,
                "shardIDs": [
                    0
                ]
            },
            "receipts": [
                {
                    "amount": 500000000000000000,
                    "from": "one1mal2vjczt5jtf7a3wxel2djke452ssfl4pfufh",
                    "shardID": 1,
                    "to": "one1a4wavd24rd79enmt6x7n0ljdv6ah88uhqvd6hy",
                    "toShardID": 0,
                    "txHash": "0x119c7259b335a679ddee660c622f7937945394c666cdfe2345d27af483ccc574"
                }
            ]
        },
...

hmy_getCXReceiptByHash

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getCXReceiptByHash",
    "params": [
        "0xc6da1349d2c2fbb5724126fe9e462996f8f8b415275e411d39a72945d3cb05ef"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": null
}

hmy_pendingTransactions

Returns list of pending transactions object.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_pendingTransactions",
    "params": [],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": null,
            "ethHash": "0x715ffb5c55de32609f1d7569a519c07bcc908d14396f93de69ca890dd14e4897",
            "from": "one15fm5lj5txpxdfyway3rtk4xp85mwztfg5yauq5",
            "gas": 239130,
            "gasPrice": 120000000000,
            "hash": "0xec066d5f99c206583c5511089d5399309bcba3ccc7fca41781ecb521a5290b06",
            "input": "0x126928c4000000000000000000000000000000000000000000000000000000000000007e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000014a2774fca8b304cd491dd2446bb54c13d36e12d28000000000000000000000000000000000000000000000000000000000000000000000000000000000000005600020000000000000000000000000000000000000000000000000000000000030d4000000000000000000000000000000000000000000000000000000d1ee4ebb406a2774fca8b304cd491dd2446bb54c13d36e12d2800000000000000000000",
            "nonce": 5,
            "r": "0x5c7d3d784aca6b9a1e4d691395574928d371a2ff511894fbab5f3e6fe2488293",
            "s": "0x7bce99069d051904f9c8b9f6fe7b55890d5068d45d0d6446fabdc650d4c6b531",
            "shardID": 0,
            "timestamp": 0,
            "to": "one1vuvxzqyyjauz7uggmyydfhcca0u4nzuzka4d80",
            "toShardID": 0,
            "transactionIndex": 0,
            "v": "0xc6ac98a3",
            "value": 4608264537387518464
        },
        {
            "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": null,
            "ethHash": "0x893df9bb2658d5a9059a4cf050c50e67a66870ee68adae5b24f1ae9d1a1e4a4c",
            "from": "one15fm5lj5txpxdfyway3rtk4xp85mwztfg5yauq5",
            "gas": 239307,
            "gasPrice": 120000000000,
            "hash": "0x434265f1664087c826ec78043b340f4ef2267ec13d3c34b824b2d2f152967887",
            "input": "0xd684349b000000000000000000000000000000000000000000000000000000000000007e000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000014b0bea3bb2d6eddd2014952abd744660baef9747d000000000000000000000000000000000000000000000000000000000000000000000000000000000000005600020000000000000000000000000000000000000000000000000000000000061a8000000000000000000000000000000000000000000000000000000e4b84f0c72aa2774fca8b304cd491dd2446bb54c13d36e12d2800000000000000000000",
            "nonce": 6,
            "r": "0x30f5c01e6b9a24c266b4a3594554c1833015cd97a321638f2c8fa02c9cb6a7c1",
            "s": "0x43121d32824214465fc59feabac1dc549205721c7428ee1f2df9e40e21e3e5ce",
            "shardID": 0,
            "timestamp": 0,
            "to": "one1tvsfulypm64dplacka4kjmdmgce6xxxdxyr4x4",
            "toShardID": 0,
            "transactionIndex": 0,
            "v": "0xc6ac98a4",
            "value": 5123961170745376768
        },
        {
            "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": null,
            "ethHash": "0xb1c6f1064eab42862fea71b5bbff612804c765a6d3a058b0aea026e1b6760b72",
            "from": "one15fm5lj5txpxdfyway3rtk4xp85mwztfg5yauq5",
            "gas": 257722,
            "gasPrice": 120000000000,
            "hash": "0x529674c092dfdb33d8221f8a0ee044364894a5cdd624187c80594a91979fc14d",
            "input": "0x126928c40000000000000000000000000000000000000000000000000000000000000073000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000014a2774fca8b304cd491dd2446bb54c13d36e12d28000000000000000000000000000000000000000000000000000000000000000000000000000000000000005600020000000000000000000000000000000000000000000000000000000000030d4000000000000000000000000000000000000000000000000000000d3524d7dee1a2774fca8b304cd491dd2446bb54c13d36e12d2800000000000000000000",
            "nonce": 7,
            "r": "0x62f8fd15bc572e286c7a82bf059e67d019275a7a397ee0ec81106004828ad718",
            "s": "0x462b1f9d3207c45f293a93e45df87b1602233a4c7ad7548b81eb2179932ae2ad",
            "shardID": 0,
            "timestamp": 0,
            "to": "one1vuvxzqyyjauz7uggmyydfhcca0u4nzuzka4d80",
            "toShardID": 0,
            "transactionIndex": 0,
            "v": "0xc6ac98a3",
            "value": 1088484092653484416
        },
...

hmy_sendRawStakingTransaction

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmy_sendRawStakingTransaction",
    "params": [
        "0xf869808082520880809410a02a0a6e95a676ae23e2db04bea3d1b8b7ca2e880de0b6b3a7640000801ba0c8d0c5390086999b5b5a93373953c3c94b44dc8fd06d88a421a7c2461e9e4482a0730d7859d1e3109d499bcd75f00700729b9bc17b03940da4f84b6ea784f51eb1"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "rlp: input list has too many elements for types.txdata"
    }
}

hmy_getTransactionsHistory

hmy_getTransactionsHistory get transactions history for an address

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "explorer service not started"
    }
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "explorer service not started"
    }
}

hmy_sendRawTransaction

Send a raw transaction encoded in bytes.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc":"2.0",
    "method":"hmy_sendRawTransaction",
    "params":[
      "0xf869808082520880809410a02a0a6e95a676ae23e2db04bea3d1b8b7ca2e880de0b6b3a7640000801ba0c8d0c5390086999b5b5a93373953c3c94b44dc8fd06d88a421a7c2461e9e4482a0730d7859d1e3109d499bcd75f00700729b9bc17b03940da4f84b6ea784f51eb1"
    ],
    "id":1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "blockchain chain id:1, given 0: invalid chain id for signer"
    }
}

hmy_getTransactionReceipt

Get transaction receipt from transaction hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getTransactionReceipt",
    "params": [
        "0x2fa714e40389cbbceda0f77e707035c0ec8aa940e8e10c0d445813177ea71e7d"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": null
}

hmy_getBlockTransactionCountByHash

Get the number of transactions in a block by the block's hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getBlockTransactionCountByHash",
    "params": [
        "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": 1
}

hmy_getBlockTransactionCountByNumber

Get the number of transactions in a block by the block's index in the chain.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getBlockTransactionCountByNumber",
    "params": [
        1
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": 0
}

hmy_getTransactionByHash

Get a transaction by its hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getTransactionByHash",
    "params": [
        "0x0c15c743beb42420bfc332ad1f367a444c05af7e1e670f2c04fdd8bb3fed60e3"
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        "blockNumber": 56994030,
        "ethHash": "0x0c15c743beb42420bfc332ad1f367a444c05af7e1e670f2c04fdd8bb3fed60e3",
        "from": "one1d69gpc6u8pqfzw6300z2qgpgsvwsfhukvq68gc",
        "gas": 21000,
        "gasPrice": 150000000000,
        "hash": "0x713c89d18f6a03053ce8b337eefc1976c475d58aba9d097e123bfa952bb0a168",
        "input": "0x",
        "nonce": 1124505,
        "r": "0xfe47927b08d40cabe6f2c2a7edd0da9f7f8c561f6514c77af931bf69d1bb3593",
        "s": "0x4f5ce2ed493e9a772e814914c8f988f7f9f8d9b21465687f0dcabe02342bd931",
        "shardID": 0,
        "timestamp": 1714667399,
        "to": "one1me6ckxspcg7e76n5h0ykw3ph8rgrsnyg0le9de",
        "toShardID": 0,
        "transactionIndex": 0,
        "v": "0xc6ac98a4",
        "value": 100000000000000000
    }
}

hmy_getTransactionByBlockNumberAndIndex

Get transaction at an index from a given block, specified by number.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getTransactionByBlockNumberAndIndex",
    "params": [
        56994030,
        0
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        "blockNumber": 56994030,
        "ethHash": "0x0c15c743beb42420bfc332ad1f367a444c05af7e1e670f2c04fdd8bb3fed60e3",
        "from": "one1d69gpc6u8pqfzw6300z2qgpgsvwsfhukvq68gc",
        "gas": 21000,
        "gasPrice": 150000000000,
        "hash": "0x713c89d18f6a03053ce8b337eefc1976c475d58aba9d097e123bfa952bb0a168",
        "input": "0x",
        "nonce": 1124505,
        "r": "0xfe47927b08d40cabe6f2c2a7edd0da9f7f8c561f6514c77af931bf69d1bb3593",
        "s": "0x4f5ce2ed493e9a772e814914c8f988f7f9f8d9b21465687f0dcabe02342bd931",
        "shardID": 0,
        "timestamp": 1714667399,
        "to": "one1me6ckxspcg7e76n5h0ykw3ph8rgrsnyg0le9de",
        "toShardID": 0,
        "transactionIndex": 0,
        "v": "0xc6ac98a4",
        "value": 100000000000000000
    }
}

hmy_getTransactionByBlockHashAndIndex

Get transaction at an index from a given block, specified by block hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getTransactionByBlockHashAndIndex",
    "params": [
        "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        0
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blockHash": "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        "blockNumber": 56994030,
        "ethHash": "0x0c15c743beb42420bfc332ad1f367a444c05af7e1e670f2c04fdd8bb3fed60e3",
        "from": "one1d69gpc6u8pqfzw6300z2qgpgsvwsfhukvq68gc",
        "gas": 21000,
        "gasPrice": 150000000000,
        "hash": "0x713c89d18f6a03053ce8b337eefc1976c475d58aba9d097e123bfa952bb0a168",
        "input": "0x",
        "nonce": 1124505,
        "r": "0xfe47927b08d40cabe6f2c2a7edd0da9f7f8c561f6514c77af931bf69d1bb3593",
        "s": "0x4f5ce2ed493e9a772e814914c8f988f7f9f8d9b21465687f0dcabe02342bd931",
        "shardID": 0,
        "timestamp": 1714667399,
        "to": "one1me6ckxspcg7e76n5h0ykw3ph8rgrsnyg0le9de",
        "toShardID": 0,
        "transactionIndex": 0,
        "v": "0xc6ac98a4",
        "value": 100000000000000000
    }
}

hmy_getBlockByNumber

Get block by its index in the blockchain.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getBlockByNumber",
    "params": [
        1,
        {
            "fullTx": true,
            "inclTx": true,
            "withSigners": true
        }
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "number": 1,
        "viewID": 0,
        "epoch": 0,
        "hash": "0x61ce03ef5efa374b0d0d527ea38c3d13cb05cf765a4f898e91a5de1f6b224cdd",
        "parentHash": "0xb4d158b82ac8a653c42b78697ab1cd0c6a0d9a15ab3bc34130f0b719fb174d2a",
        "nonce": 0,
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "stateRoot": "0x8be048c908585bbb6b155324ad8a854484994ab27e5987af134ad036079675bf",
        "miner": "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
        "difficulty": 0,
        "extraData": "0x",
        "size": 601,
        "gasLimit": 4716988,
        "gasUsed": 0,
        "vrf": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "vrfProof": "0x",
        "timestamp": 1561736306,
        "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "uncles": [],
        "transactions": [],
        "stakingTransactions": [],
        "signers": [
            "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
            "one1jyvcqu4k0rszgf3r2a02tm89dzd68arw5lz9vl",
            "one1nn2c86kwaq4nk8lda50fnepepqr9y73kd9w2z3",
            "one1u7jzpkd3sr40kzw62vjval85dkzeyn3g2shz83",
            "one1tfrpfvrgj5tnxj029xsdkl33hmrsry056nrpvt",
            "one1fg0nrc7djkm2p47tjsuhd8n9435mz9ed57dj8v",
            "one15jv9h2rwtczgmre923nde50jfz0sjs8c9gnwpd",
            "one145zhxlug79wjwlf9wrx5vh90u2t7nfu562rdlh",
            "one17fn65sgdnp9hphg6vn58h90k3ujt07xtqrnn3y",
            "one1ssctny3j3hs92wnetqgkrncwfatq6er6rhede9",
            "one1uevxtwdqehq7k2v5jdm6mz4m492f3qpja4e36q",
            "one1m4909gjt2g4fsl2jw95kxmjmja2ka4cc6d4sgs",
            "one1sdrc3dla7zzd5pdqjagywfdumnqsyl57ql7sj2",
            "one1w4ekumvg88ex5txjrzk9qgfx3xheua4djrphld",
            "one1h3ztpa75txa2ng20jzzekqzcfmxx9v83lpeuaz",
            "one1zsk49ypjc540vy2663gpn76d8z0mg577d8x5kw",
            "one1pq9zk56dsapwracyx0z7lgz32603hzfk7f2t2e",
            "one16dllsrjr04uhzsuw7raaq4cszpkt3g997yev2s",
            "one1rs666h8mfgm33kqdkzzq4s6klem4d0hk9lldc4",
            "one1xgk5rmygeuh5p4m2uhp048dfucr7avf7tzj6w4",
            "one1jyzcklsqmr5r5qvvyh0r0e2436ss6vteap69kv",
            "one1mvlwv0wjp9u6yv2v0ema3qurlnxkp5ftekegm8",
...

hmy_getBlockByHash

Get block by its hash.

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getBlockByHash",
    "params": [
        "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        {
            "fullTx": true,
            "inclTx": true,
            "withSigners": true
        }
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "number": 56994030,
        "viewID": 57000390,
        "epoch": 1912,
        "hash": "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
        "parentHash": "0x273f6199fcebd86a4f73d27a4d2eda66003b9b7000b2f7e089e0282ade27dacb",
        "nonce": 0,
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "stateRoot": "0x0e23d217b469b1046e17d3ad39030995e29a9d858fe04fab17a8d4847f5e3781",
        "miner": "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
        "difficulty": 0,
        "extraData": "0x",
        "size": 1132,
        "gasLimit": 30000000,
        "gasUsed": 21000,
        "vrf": "0x83a0dae934a9c755914545e4cae4fe781693a24cfa2233fa224e2b555f667a63",
        "vrfProof": "0xca1e9635ea92ac78f0b01eab052b538d65a84a21861e1d8e178aded8eda892b01a1ea67e80f13a167635e6e821e3e0152f3be23e3bbbcf502dda80c11ee077846d32bdbb639cdbf3723953c67b93773271e41e752ed69efa194f83422f077114",
        "timestamp": 1714667399,
        "transactionsRoot": "0xd564b8bfd8abc5aa07853e36e739939c933af28319e72409968fa04f4bdbf43c",
        "receiptsRoot": "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
        "uncles": [],
        "transactions": [
            {
                "blockHash": "0xf4184c5cd942a4bdf9c955f20b79ae8fdf42943e152165b8feeec9273345c3a9",
                "blockNumber": 56994030,
                "from": "one1d69gpc6u8pqfzw6300z2qgpgsvwsfhukvq68gc",
                "timestamp": 1714667399,
                "gas": 21000,
                "gasPrice": 150000000000,
                "hash": "0x713c89d18f6a03053ce8b337eefc1976c475d58aba9d097e123bfa952bb0a168",
                "ethHash": "0x0c15c743beb42420bfc332ad1f367a444c05af7e1e670f2c04fdd8bb3fed60e3",
                "input": "0x",
                "nonce": 1124505,
                "to": "one1me6ckxspcg7e76n5h0ykw3ph8rgrsnyg0le9de",
                "transactionIndex": 0,
                "value": 100000000000000000,
                "shardID": 0,
                "toShardID": 0,
                "v": "0xc6ac98a4",
                "r": "0xfe47927b08d40cabe6f2c2a7edd0da9f7f8c561f6514c77af931bf69d1bb3593",
                "s": "0x4f5ce2ed493e9a772e814914c8f988f7f9f8d9b21465687f0dcabe02342bd931"
            }
        ],
        "stakingTransactions": [],
        "signers": [
            "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
...

hmy_getBlocks

hmy_getBlocks returns blocks in range [from; to]

Method: POST

https://one.nownodes.io

Example body (raw)

{
    "jsonrpc": "2.0",
    "method": "hmyv2_getBlocks",
    "params": [
        1,
        2,
        {
            "withSigners": true,
            "fullTx": true,
            "inclStaking": true
        }
    ],
    "id": 1
}

Example response: 200

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "number": 1,
            "viewID": 0,
            "epoch": 0,
            "hash": "0x61ce03ef5efa374b0d0d527ea38c3d13cb05cf765a4f898e91a5de1f6b224cdd",
            "parentHash": "0xb4d158b82ac8a653c42b78697ab1cd0c6a0d9a15ab3bc34130f0b719fb174d2a",
            "nonce": 0,
            "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "stateRoot": "0x8be048c908585bbb6b155324ad8a854484994ab27e5987af134ad036079675bf",
            "miner": "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
            "difficulty": 0,
            "extraData": "0x",
            "size": 601,
            "gasLimit": 4716988,
            "gasUsed": 0,
            "vrf": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "vrfProof": "0x",
            "timestamp": 1561736306,
            "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "uncles": [],
            "transactions": [],
            "stakingTransactions": [],
            "signers": [
                "one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux",
                "one1jyvcqu4k0rszgf3r2a02tm89dzd68arw5lz9vl",
                "one1nn2c86kwaq4nk8lda50fnepepqr9y73kd9w2z3",
                "one1u7jzpkd3sr40kzw62vjval85dkzeyn3g2shz83",
                "one1tfrpfvrgj5tnxj029xsdkl33hmrsry056nrpvt",
                "one1fg0nrc7djkm2p47tjsuhd8n9435mz9ed57dj8v",
                "one15jv9h2rwtczgmre923nde50jfz0sjs8c9gnwpd",
                "one145zhxlug79wjwlf9wrx5vh90u2t7nfu562rdlh",
                "one17fn65sgdnp9hphg6vn58h90k3ujt07xtqrnn3y",
                "one1ssctny3j3hs92wnetqgkrncwfatq6er6rhede9",
                "one1uevxtwdqehq7k2v5jdm6mz4m492f3qpja4e36q",
                "one1m4909gjt2g4fsl2jw95kxmjmja2ka4cc6d4sgs",
                "one1sdrc3dla7zzd5pdqjagywfdumnqsyl57ql7sj2",
                "one1w4ekumvg88ex5txjrzk9qgfx3xheua4djrphld",
                "one1h3ztpa75txa2ng20jzzekqzcfmxx9v83lpeuaz",
                "one1zsk49ypjc540vy2663gpn76d8z0mg577d8x5kw",
                "one1pq9zk56dsapwracyx0z7lgz32603hzfk7f2t2e",
                "one16dllsrjr04uhzsuw7raaq4cszpkt3g997yev2s",
                "one1rs666h8mfgm33kqdkzzq4s6klem4d0hk9lldc4",
                "one1xgk5rmygeuh5p4m2uhp048dfucr7avf7tzj6w4",
                "one1jyzcklsqmr5r5qvvyh0r0e2436ss6vteap69kv",
...

Last updated