eth_getTransactionByHash - Ethereum

eth_getTransactionByHash. Returns the information about a transaction requested by transaction hash

eth_getTransactionByHash - ethereum [Value: 11CU]
Returns the information about a transaction requested by transaction hash.
Use cases

Use cases

  • Retrieve transaction details using transaction hash
  • Verify transaction status and details by hash
  • Audit transaction data for specific hash
Constraints

Constraints

  • Requires valid transaction hash input
  • Node must be synchronized with blockchain
  • Depends on latest blockchain data availability
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://eth.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionByHash","params":["0xb1fac2cb5074a4eda8296faebe3b5a3c10b48947dd9a738b2fdf859be0e1fbaf"],"id":1,"jsonrpc":"2.0"}'
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2",
    "blockNumber": "0x5daf3b",
    "hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b",
    "input": "0x68656c6c6f21",
    "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea",
    "s": "0x4ba69724e8f69de52f0125ad8b3c5c2cef33019bac3249e2c0a2192766d1721c",
    "v": "0x25",
    "gas": "0xc350",
    "from": "0xa7d9ddbe1f17865597fbd27ec712455208b6b76d",
    "transactionIndex": "0x41",
    "to": "0xf02c1c8e6114b1dbe8937a39260b5b0a374432bb",
    "type": "0x0",
    "value": "0xf3dbb76162000",
    "nonce": "0x15",
    "gasPrice": "0x4a817c800"
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of strings
array of strings
hashstring
The hash of a transaction.

Response

200
A transaction object, or null when no transaction was found.

Response params

object
idinteger
jsonrpcstring
resultobject
object
blockHashstring
The number of the block where the given transaction was included.
blockNumberstring
The block number where this log was in. null when its pending. null when its pending log.
transactionIndexstring
Integer of the transactions index position log was created from. null when its pending log.
noncestring
The number of transactions made by the sender prior to this one.
hashstring
32 Bytes - hash of the transaction.
fromstring
20 Bytes - address of the sender.
gasstring
Gas provided by the sender.
gasPricestring
Gas price provided by the sender in Wei.
inputstring
The data send along with the transaction.
rstring
ECDSA signature r.
sstring
ECDSA signature r.
tostring
20 Bytes - address of the receiver. null when it's a contract creation transaction.
vstring
ECDSA recovery id.
valuestring
Value transferred in Wei.