Share your GetBlock experience with other devs and get 5M RPCs

banner image

Last updated on January 1, 1970

2 min read

Method eth_getTransactionByBlockNumberAndIndex Fantom (FTM)
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://ftm.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["0x52A96E", "0x1"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "blockHash": "0x00001d6f0000094584dda6f0f1fe250ffa501776f8f1c59ae69115db2b8dba89",
        "blockNumber": "0x52a96e",
        "from": "0x916ce2b400ff646e0dd0ada8db51dba252197652",
        "gas": "0x7a120",
        "gasPrice": "0x5676c7e80",
        "hash": "0x85116a39255cf627defc766f16356574242e6337e9ac045f073a49d587f7edd9",
        "input": "0xddb912b0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000004188972bccbafc00000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000b471ac6ef617e952b84c6a9ff5de65a9da96c93b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c830000000000000000000000001e4f97b9f9f913c46f1632781732927b9019c68b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000016327e3fbdaca3bcf7e38f5af2599d2ddc33ae52000000000000000000000000374c8acb146407ef0ae8f82baafcf8f4ec1708cf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4f97b9f9f913c46f1632781732927b9019c68b00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
        "nonce": "0x2b68",
        "r": "0x804746cc1a512c8c9be8fac2d4cec803183f18154c819037ed201a1ae1ded156",
        "s": "0x363051661435736798d93c8883ece45ca00f5e41845a1da0305fb1fd8fe56ad5",
        "to": "0xaf8d7a7ae387e81a28c776388167bb0632c4a77d",
        "transactionIndex": "0x1",
        "type": "0x0",
        "v": "0x218",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free