eth
eth_getTransactionReceipt
Returns the receipt of a transaction by its hash. The receipt contains the execution result, including status, gas used, and event logs. Only available for confirmed transactions.
Returns the receipt of a transaction by its hash. The receipt contains the execution result, including status, gas used, and event logs. Only available for confirmed transactions.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | The transaction hash (32 bytes, hex-encoded with 0x prefix). |
Returns
object -- A transaction receipt object, or null if the transaction is not found or is still pending. The object contains:
| Field | Type | Description |
|---|---|---|
transactionHash | string | Hash of the transaction. |
transactionIndex | string | Index of the transaction within the block (hex). |
blockHash | string | Hash of the block containing the transaction. |
blockNumber | string | Block number (hex). |
from | string | Address of the sender. |
to | string | Address of the receiver. null for contract creation. |
cumulativeGasUsed | string | Total gas used in the block up to and including this transaction (hex). |
effectiveGasPrice | string | Actual gas price paid per unit of gas (hex). |
gasUsed | string | Gas used by this transaction (hex). |
contractAddress | string | Address of the created contract, or null if not a contract creation. |
logs | array | Array of log objects emitted during execution. |
logsBloom | string | Bloom filter for the logs. |
status | string | "0x1" for success, "0x0" for failure (revert). |
type | string | Transaction type (hex). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x01c5a8461d06c2c195035c148af0f871c7679841d86ae5bb98676bb2d8e68dfa"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"transactionHash": "0x01c5a8461d06c2c195035c148af0f871c7679841d86ae5bb98676bb2d8e68dfa",
"transactionIndex": "0x0",
"blockHash": "0x...",
"blockNumber": "0x...",
"from": "0x...",
"to": "0x...",
"cumulativeGasUsed": "0x5208",
"effectiveGasPrice": "0x3b9aca00",
"gasUsed": "0x5208",
"contractAddress": null,
"logs": [],
"logsBloom": "0x0000...",
"status": "0x1",
"type": "0x0"
}
}
TRY IT
Notes
- Returns
nullfor pending transactions. Anullresult means the transaction either does not exist or has not yet been included in a block. Poll this method to wait for transaction confirmation. - The
statusfield indicates execution success ("0x1") or failure/revert ("0x0"). Failed transactions are still included in the block and consume gas. - The
logsarray is essential for tracking token transfers and contract events. Each log containstopicsanddatathat must be ABI-decoded. - The
contractAddressfield is only populated for contract creation transactions (wheretoisnull). - Use
eth_getTransactionByHashto get the original transaction data (value, input, gas limit). The receipt provides the execution outcome.
eth_getTransactionByHash
Returns information about a transaction given its hash. This is the primary method for looking up individual transactions.
eth_getProof
Returns the Merkle proof for an account and optionally for specific storage slots. This allows trustless verification that an account's balance, nonce, code, or storage values are included in the stat
