Skip to main content
Ethereum API
Multichain API

eth_getTransactionReceipt

Summary: Returns the receipt of a transaction by transaction hash.

Parameters

Transaction hash string

32 byte hex value

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

Returns

Receipt information oneOf

Not Found (null) null

Not Found (null)

Receipt information object
required

Receipt information

type string

hex encoded byte

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

transactionHash string

32 byte hex value

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

transactionIndex string

hex encoded unsigned integer

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

blockHash string

32 byte hex value

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

blockNumber string

hex encoded unsigned integer

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

from string

hex encoded address

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

to oneOf

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

Contract Creation (null) null

Contract Creation (null)

Recipient Address string

hex encoded address

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

cumulativeGasUsed string

hex encoded unsigned integer

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

gasUsed string

hex encoded unsigned integer

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

blobGasUsed string

hex encoded unsigned integer

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

contractAddress oneOf

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

hex encoded address string

hex encoded address

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

Null null

Null

logs array

logs

log object
required

log

removed boolean

removed

logIndex string

hex encoded unsigned integer

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

transactionIndex string

hex encoded unsigned integer

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

transactionHash string

32 byte hex value

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

blockHash string

32 byte hex value

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

blockNumber string

hex encoded unsigned integer

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

address string

hex encoded address

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

data string

hex encoded bytes

Pattern: ^0x[0-9a-f]*$

topics array

topics

32 hex encoded bytes string

32 hex encoded bytes

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

logsBloom string

256 hex encoded bytes

Pattern: ^0x[0-9a-f]{512}$

root string

32 byte hex value

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

status string

hex encoded unsigned integer

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

effectiveGasPrice string

hex encoded unsigned integer

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

blobGasPrice string

hex encoded unsigned integer

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

Customize request
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_getTransactionReceipt",
"params": [],
});