eth_getTransactionByHash - Celo
eth_getTransactionByHash. Retrieves detailed information about a specific transaction using its hash
eth_getTransactionByHash - celo [Value: 11CU]
Retrieves detailed information about a specific transaction using its hash
Use cases
- Retrieve transaction details using transaction hash
- Verify transaction status and details by hash
- Audit transaction data for specific hash
Constraints
- Requires valid transaction hash input
- Node must be synchronized with blockchain
- Depends on latest blockchain data availability
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://celo.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getTransactionByHash","params":["0xb1fac2cb5074a4eda8296faebe3b5a3c10b48947dd9a738b2fdf859be0e1fbaf"],"id":1,"jsonrpc":"2.0"}'
'
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"
}
}
Request params
idinteger
jsonrpcstring
methodstring
array of strings
hashstring
The hash of the transaction to retrieve.
Response
200
The transaction object if found, or null if no transaction is found with the given hash.Response params
object
idinteger
jsonrpcstring
resultobject
object
blockHashstring
Hash of the block containing the transaction.
blockNumberstring
Block number containing the transaction.
transactionIndexstring
Position of the transaction in the block (null if pending)
noncestring
Number of prior transactions from the sender.
hashstring
32 Bytes - hash of the transaction.
fromstring
Transaction hash.
gasstring
Gas provided by the sender.
gasPricestring
Gas price provided by the sender in wei.
inputstring
Data sent with the transaction.
rstring
ECDSA signature r.
sstring
ECDSA signature r.
tostring
Receiver's address (null if contract creation).
vstring
ECDSA recovery id.
valuestring
Value transferred in Wei.