Quicknode RPC icon

Quicknode RPC

Interact with blockchain via Quicknode RPC

Get Transaction Receipt

AI-generated

Summary

Retrieves the receipt data for a specific Ethereum transaction by hash using the eth_getTransactionReceipt RPC method.

Inputs

  • txHash (required) — The transaction hash (66 characters starting with 0x) of the transaction to retrieve the receipt for.

Output shape

A single record per input item containing the transaction receipt data and metadata.

Includes the raw RPC result and metadata such as the network name. If the transaction is not found, the RPC returns null.

Examples

Example 1: Verify a transaction was mined by checking its status.

Enter the transaction hash to fetch the receipt and check the 'status' field (0x0 for failed, 0x1 for successful).

Example 2: Retrieve the gas used by a transaction.

Fetch the receipt to access the 'gasUsed' field, which indicates the amount of gas consumed by the transaction execution.

Links

Discussion