Skip to main content

eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash.

Params

(1)

1. Transaction hash (required)

string
Match pattern:
^0x[0-9a-f]{64}$

Result

(Receipt Information)
transactionHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
transactionIndex
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
blockHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
blockNumber
string
required
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
from
string
required
Match pattern:
^0x[0-9,a-f,A-F]{40}$
to
string

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

Match pattern:
^0x[0-9,a-f,A-F]{40}$
cumulativeGasUsed
string
required

The sum of gas used by this transaction and all preceding transactions in the same block.

Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
gasUsed
string
required

The amount of gas used for this specific transaction alone.

Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
contractAddress

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

logs
array[log]
required
removed
boolean
logIndex
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
transactionIndex
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
transactionHash
string
required
Match pattern:
^0x[0-9a-f]{64}$
blockHash
string
Match pattern:
^0x[0-9a-f]{64}$
blockNumber
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
address
string
Match pattern:
^0x[0-9,a-f,A-F]{40}$
data
string
Match pattern:
^0x[0-9a-f]*$
topics
array[string]
logsBloom
string
required
Match pattern:
^0x[0-9a-f]{512}$
root
string

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

Match pattern:
^0x[0-9a-f]{64}$
status
string

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

Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$
effectiveGasPrice
string
required

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

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

Params

Transaction hash


Request

await window.ethereum.request({
"method": "eth_getTransactionReceipt",
"params": [
null
]
});