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_getTransactionByHash undefined ()
connect with JSON-RPC protocol

eth_getTransactionByHash

info-circle-fill

Returns transaction information for the specified transaction hash.

Parameters

DATA - hex string

32-byte transaction hash.

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_getTransactionByHash",
"params": ["0xd3a7420982975e8b161e7a049c582ee20900762f6c005dcccfd55d33a94d9b5f"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accessList": [],
        "blockHash": "0x00033bca0000046700d44a27301783f44016362a31ee066aa2a3ff82350783a9",
        "blockNumber": "0x3be8f6d",
        "chainId": "0xfa",
        "from": "0xbee08753d42db191f438979d3cb6a08d28d36555",
        "gas": "0x802c8",
        "gasPrice": "0xd879b1fa9",
        "hash": "0xd3a7420982975e8b161e7a049c582ee20900762f6c005dcccfd55d33a94d9b5f",
        "input": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026f2000000000000000000000000c3e65b94ac160a08f79b22d4547e2b40f33974ad000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026fc000000000000000000000000a700b87d19cc1bb914569127fc11455bc0d2b0d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026fc0000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c000000000000000000000000000000000000000000000000000000000000000300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000c418b123885d732ed042b16e12e259741863f72300000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75",
        "maxFeePerGas": "0x132a0a17f2",
        "maxPriorityFeePerGas": "0x57afc9866",
        "nonce": "0x5fce",
        "r": "0xa3f169392cf23a6bb023603c32ae014676b44df3ff33c6d83322af2e7c779e4c",
        "s": "0x1e6caf7dbf4a57de34964ac4d7c9474fc8edf38ddda008f4f56517bc31f375cb",
        "to": "0x4992a76c6835f03afe73a20cec8445336daea05a",
        "transactionIndex": "0x3",
        "type": "0x2",
        "v": "0x0",
        "value": "0x0"
    }
}
banner icon

Start Building with GetBlock RPCs for Free