eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Transaction hashstringRequiredformat: "^0x[0-9a-f]{64}$"
The hash of the transaction for which to get the receipt.

Response

The transaction receipt object containing various properties of the transaction receipt.
transactionHashstringformat: "^0x[0-9a-f]{64}$"
transactionIndexstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
blockHashstringformat: "^0x[0-9a-f]{64}$"
blockNumberstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
fromstringformat: "^0x[0-9a-fA-F]{40}$"
cumulativeGasUsedstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
The sum of gas used by this transaction and all preceding transactions in the same block.
gasUsedstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
The amount of gas used for this specific transaction alone.
logslist of objects
logsBloomstringformat: "^0x[0-9a-f]{512}$"
effectiveGasPricestringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The actual value per gas deducted from the sender’s account. Before EIP-1559, this is equal to the transaction’s gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).

typestring or nullformat: "^0x([0-9a-fA-F]?){1,2}$"
tostring or nullformat: "^0x[0-9a-fA-F]{40}$"
Address of the receiver or null in a contract creation transaction.
blobGasUsedstring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The amount of blob gas used for this specific transaction. Only specified for blob transactions as defined by EIP-4844.

contractAddressstring or nullformat: "^0x[0-9a-fA-F]{40}$"
The contract address created, if the transaction was a contract creation, otherwise null.
rootstring or nullformat: "^0x[0-9a-f]{64}$"

The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.

statusstring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.

blobGasPricestring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The actual value per gas deducted from the sender’s account for blob gas. Only specified for blob transactions as defined by EIP-4844.