EVM
eth_getTransactionByHash
Summary: Get transaction by transaction hash
This request returns the information about a transaction for the given transaction hash.
Parameters
transactionHash
stringA string representing the hash (32 bytes) of a transaction.
Pattern: ^0x[0-9a-f]{64}$
Returns
eth_getTransactionByHashResponse
oneOfReturns the transaction information or "not found".
Customize request
Parameter
Value
RequestCURL
CURL
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x1ecac319d356e2bd78262dc9efddb6b048f33e4c706f356d72768f87c5fc0753"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"blockHash": "0x3ff53efeec688238a8ecc0a1404221d1be3723aa6531f12f4d635dc8e7824779",
"blockNumber": "0x49b95c",
"chainId": "0xe708",
"from": "0x188e0b45cedd8f5e425e73c8aa7953b92115ec24",
"gas": "0x2dc04",
"gasPrice": "0x3ba1f2a",
"hash": "0x1ecac319d356e2bd78262dc9efddb6b048f33e4c706f356d72768f87c5fc0753",
"input": "0xb93037010000000000000000000000000000000000000000000000000000...",
"nonce": "0x50",
"r": "0x9eb4ed965beb69b22086727a746bf7af81a1a54ba1b209582909b40bd4d30f77",
"s": "0x29ff48a513574546b651edb11c5f3ba61eb0758094f6c1f2bc617c860a736245",
"to": "0xef4fb24ad0916217251f553c0596f8edc630eb66",
"transactionIndex": "0x8",
"v": "0x1ce33",
"value": "0x79b3d693c7788"
}
}