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).

typestringOptionalformat: "^0x([0-9a-fA-F]?){1,2}$"
tostringOptionalformat: "^0x[0-9a-fA-F]{40}$"

Address of the receiver or null in a contract creation transaction.

blobGasUsedstringOptionalformat: "^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.

contractAddressstringOptionalformat: "^0x[0-9a-fA-F]{40}$"

The contract address created, if the transaction was a contract creation, otherwise null.

rootstringOptionalformat: "^0x[0-9a-f]{64}$"

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

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

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

blobGasPricestringOptionalformat: "^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.