Help Center/
Web3 Node Engine Service/
Developer Guide/
Arbitrum/
Arbitrum APIs/
Shared Edition/
Ethereum JSON-RPC APIs/
eth_getTransactionByHash
Updated on 2023-12-06 GMT+08:00
eth_getTransactionByHash
Introduction
This API returns the information about a transaction by transaction hash. It consumes 17 CUs.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
Transaction hash |
String |
The hash of a transaction. |
Return Value
Object: A transaction object with the following fields, or null when no transaction was found:
- blockHash: the hash of the block where this transaction was in. It is null for a pending log.
- blockNumber: the number of the block where this transaction was in. It is null for a pending log.
- from: the address of the sender.
- gas: the gas provided by the sender in hexadecimal.
- gasPrice: the gas price provided by the sender in wei encoded as hexadecimal.
- maxFeePerGas: the maximum fee per gas set in the transaction.
- maxPriorityFeePerGas: the maximum priority gas fee set in the transaction.
- hash: the hash of the transaction.
- input: the data sent along with the transaction.
- nonce: the number of transactions made by the sender prior to this one encoded as hexadecimal.
- to: the address of the receiver. It is null for a contract creation transaction.
- transactionIndex: the integer of the transactions index position from which this log was created. It is null for a pending log.
- value: the value transferred in wei encoded as hexadecimal.
- type: the transaction type.
- accessList: a list of addresses and storage keys that the transaction plans to access.
- chainId: the transaction chain ID, if any.
- v: the standard V field of the signature.
- r: the R field of the signature.
- s: the S field of the signature.
Request
curl https://your-http-endpoint/v1/<API-KEY> \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionByHash","params":["0xb142342a7fd70602b7a0ba3688a41bfcbb4fbc3490c252ca48af2594619d220c"],"id":1,"jsonrpc":"2.0"}'
Parent topic: Ethereum JSON-RPC APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot