ONE
POST
GET
Last updated on January 1, 1970
2 min read
Method eth_getTransactionByHash undefined ()
connect with JSON-RPC protocol
eth_getTransactionByHash
Returns transaction information for the specified transaction hash.
Parameters
DATA
- hex string
32-byte transaction hash.
Request
curl --location --request POST 'https://one.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0xef7ec4991840bd66569fa070ea9ab39b38a2233bbc5b3cfd272fa456e893b135"],
"id": "getblock.io"}'
Response
{
"id": "getblock.io",
"jsonrpc": "2.0",
"result": {
"blockHash": "0x910c18611575d42685a4d122a71c9d359a68c3f9786e1ca5a18c27819f8504ff",
"blockNumber": "0x286a84d",
"from": "0x05b9e576453a6166232ff5cb27a169e160d7695c",
"gas": "0xafc80",
"gasPrice": "0x199c82cc00",
"hash": "0x48a4124c61f3e81f8a3fe7b885a6705e8096343ece3bac530dc88a864c9c0439",
"input": "0x5f4f928600000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000001129c6909c8950000000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000cf664087a5bb0237a0bad6742852ec6c8d69a27a000000000000000000000000632a7f749f98812bf07fa00a8aa53e390046467e0000000000000000000000003f56e0c36d275367b8c502090edf38289b3dea0d000000000000000000000000c1726df372dec10ffe72a3afbae3b670b88d5abe000000000000000000000000eeeeeb57642040be42185f49c52f7e9b38f8eeee0000000000000000000000000e00af5734e64340d4d145b39da16a8c8aa20547000000000000000000000000cf664087a5bb0237a0bad6742852ec6c8d69a27a000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000026f200000000000000000000000000000000000000000000000000000000000026f200000000000000000000000000000000000000000000000000000000000026f200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000437edd8885b00810000000000000000000000000000000000000000000000001f801de71f869e010000000000000000000000000000000000000000000000011311a65d062b8000",
"nonce": "0x87c7",
"r": "0x3587ffb5986a067068b00c51d8018976a08dbc5032f370dee3adc75f213b4874",
"s": "0x3ccf87d7296f37afeed53d071c1ce328a2fcc22d032e0f5ee8837ca0a112ca50",
"timestamp": "0x647409e5",
"to": "0xa24bb31c626d3b3fa6073f8663e9ac0ab81fd1f9",
"transactionIndex": "0x0",
"v": "0xc6ac98a3",
"value": "0x0"
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }