eth
eth_getTransactionByHash
POST
/
id
jsonrpc
method
params
curl --request POST \
--url https://rpc1.taurus.axiomesh.io/
Returns information about a transaction for a given hash
Body
id
number
Serves as a unique identifier for the request
jsonrpc
string
Indicates the version of JSON-RPC being used
method
string
Represents the name of the remote procedure or method to be called
params
array
Contains the list of parameters passed to the remote method
transactionHash
string
A string representing the hash (32 bytes) of a transaction
Response
id
number
Returns unique identifier for the request
jsonrpc
string
Returns the version of JSON-RPC being used
transaction
object
A transaction object, or null when no transaction was found
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x04307b5f0882c6665a847b87bba2ea65e002dc7e0fcc62dfba49c4c7b7f15b62"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xf5abf88eca668507fbf7d65ef76bebcb30fb4354943682d8a0e97c9da2275a11",
"blockNumber": "0x3",
"from": "0xc7f999b83af6df9e67d0a37ee7e900bf38b3d013",
"gas": "0xac4c",
"gasPrice": "0x2540be400",
"hash": "0x04307b5f0882c6665a847b87bba2ea65e002dc7e0fcc62dfba49c4c7b7f15b62",
"input": "0x4000e4f645700000000000000000000000000000000000000000000000000000000000004570000000000000000000000000000000000000000000000000000000000001",
"nonce": "0x1",
"to": "0x4cd8ee4fc57c51d8af5b6b6a08cc441f2b4fcbfe",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0xabc",
"r": "0x4264bb2e2eb36452a36b5de83a7bab9a3133d1196590477ebad98cf57669cb6b",
"s": "0x29903c1cea0b97f663909cfe5c0f09ef40dba6a4c69b6aa34a89acd7d936a96"
}
}
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x04307b5f0882c6665a847b87bba2ea65e002dc7e0fcc62dfba49c4c7b7f15b62"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xf5abf88eca668507fbf7d65ef76bebcb30fb4354943682d8a0e97c9da2275a11",
"blockNumber": "0x3",
"from": "0xc7f999b83af6df9e67d0a37ee7e900bf38b3d013",
"gas": "0xac4c",
"gasPrice": "0x2540be400",
"hash": "0x04307b5f0882c6665a847b87bba2ea65e002dc7e0fcc62dfba49c4c7b7f15b62",
"input": "0x4000e4f645700000000000000000000000000000000000000000000000000000000000004570000000000000000000000000000000000000000000000000000000000001",
"nonce": "0x1",
"to": "0x4cd8ee4fc57c51d8af5b6b6a08cc441f2b4fcbfe",
"transactionIndex": "0x0",
"value": "0x0",
"type": "0x0",
"v": "0xabc",
"r": "0x4264bb2e2eb36452a36b5de83a7bab9a3133d1196590477ebad98cf57669cb6b",
"s": "0x29903c1cea0b97f663909cfe5c0f09ef40dba6a4c69b6aa34a89acd7d936a96"
}
}