New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

2 min read

Method eth_getTransactionByBlockHashAndIndex Fantom (FTM)
connect with JSON-RPC protocol

eth_getTransactionByBlockHashAndIndex

info-circle-fill

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

Parameters

DATA - hex string

32-byte hash of a block.

QUANTITY - hex string

Integer representing 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_getTransactionByBlockHashAndIndex",
"params": ["0x00033bca0000046700d44a27301783f44016362a31ee066aa2a3ff82350783a9", "0x2"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accessList": [],
        "blockHash": "0x00033bca0000046700d44a27301783f44016362a31ee066aa2a3ff82350783a9",
        "blockNumber": "0x3be8f6d",
        "chainId": "0xfa",
        "from": "0xd758c68f2dedaeb8af1b6b97eae32ade8b053d27",
        "gas": "0x802ce",
        "gasPrice": "0xd879b1fa9",
        "hash": "0xb6a1b91c54e34696003c1ffa1acc631c3950cea6c76090bdd94f161da6009ff1",
        "input": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026f2000000000000000000000000c3e65b94ac160a08f79b22d4547e2b40f33974ad000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026fc000000000000000000000000a700b87d19cc1bb914569127fc11455bc0d2b0d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026fc0000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c000000000000000000000000000000000000000000000000000000000000000300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000c418b123885d732ed042b16e12e259741863f72300000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75",
        "maxFeePerGas": "0x132a0a17f2",
        "maxPriorityFeePerGas": "0x57afc9866",
        "nonce": "0x3319",
        "r": "0x8a3f932afff5c40e2d5d64a958be5416f73a1fd3004e9a1dbe40c7e901f371",
        "s": "0xdcdbdbc159e5a2c056edc98316e5a67800a709da1d2b3f5488e1b1a289ddb7c",
        "to": "0x4992a76c6835f03afe73a20cec8445336daea05a",
        "transactionIndex": "0x2",
        "type": "0x2",
        "v": "0x1",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free