⚡ Access Enhanced: 200 RPS Now Available for Customers of Shared Nodes with Access Tokens

Last updated on January 1, 1970

2 min read

Method eth_getTransactionByBlockNumberAndIndex Gnosis Chain (GNO)
connect with JSON-RPC protocol

eth_getTransactionByBlockNumberAndIndex

info-circle-fill

Returns transaction information for the specified block number andtransaction index position.

Parameters

QUANTITY|TAG - hex string

Integer representing a block number or one of the string tags latest, earliest, or pending, as described in Block Parameter.

QUANTITY - hex string

The transaction index position.

Request

curl --location --request POST 'https://gno.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["0x1AC46E6", "0x0"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0x2eeb97521badd8c3385676d9015b18674141f8a5eedcb3ebe1a913e92f5a7707",
        "blockNumber": "0x1ac46e6",
        "chainId": "0x64",
        "data": "0xeed33cef000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000006124fee993bc000000000000000000000000000007a46dfa5fe50e7c1f88d8d24347e9b5d36bd3c880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000147a46dfa5fe50e7c1f88d8d24347e9b5d36bd3c880000000000000000000000000000000000000000000000000000000000000000000000000000000000000022000100000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000000",
        "from": "0x7a46dfa5fe50e7c1f88d8d24347e9b5d36bd3c88",
        "gas": "0x738fa",
        "gasPrice": "0xde15b2e0",
        "hash": "0x5f593a394ade43e7d7f42d60584df851e47576ae15064273868667cb20fa843c",
        "input": "0xeed33cef000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000006124fee993bc000000000000000000000000000007a46dfa5fe50e7c1f88d8d24347e9b5d36bd3c880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000147a46dfa5fe50e7c1f88d8d24347e9b5d36bd3c880000000000000000000000000000000000000000000000000000000000000000000000000000000000000022000100000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000000",
        "maxFeePerGas": "0xde15b2e1",
        "maxPriorityFeePerGas": "0xde15b2d9",
        "nonce": "0x9",
        "r": "0xab4a67581b3913e0d47dba2a4d045debfa70d40a750d6b298632ca10782f5561",
        "s": "0x367086ac17c9edad8a58224929519200e020b99b8d94689f76454116747e3746",
        "to": "0xfa5ed56a203466cbbc2430a43c66b9d8723528e7",
        "transactionIndex": "0x0",
        "type": "0x2",
        "v": "0x0",
        "value": "0x3bf76ad542c3de",
        "yParity": "0x0"
    }
}