Skip to main content

eth_getBlockByReceipts

Returns the receipts of a block by number or hash.

Params

Name - Block

schema

One Of

title - Block number

type - string

title - Block tag

type - string
description -

``earliest: The lowest numbered block the client has available; finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; pending: A sample next block built by the client on top of latestand containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown block error

enum

  • earliest
  • finalized
  • safe
  • latest
  • pending

Result

Name - Receipts information

schema

One Of

title - Not Found(null)

type - null

Array

title - Receipts information

Object

title - Receipt information

properties

type

title - type
type - string

transactionHash

title - transaction hash
type - string

transactionIndex

title - transaction index
type - string

blockHash

title - block hash
type - string

blockNumber

title - block number
type - string

from

title - from
type - string

to

One Of

title - Contract Creation(null)
type - null
title - Recipient Address
type - string

cumulativeGasUsed

title - cumulative gas used
type - string
description - The sum of gas used by this transaction and all preceding transactions in the same block.

gasUsed

title - gas used
type - string
description - The amount of gas used for this specific transaction alone

blobGasUsed

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

contractAddress

One Of

title - hex encoded address
type - string
title - Null
type - null

logs

Array

title - logs

Object

title - log

properties

removed

title - removed
type - boolean

logIndex

title - log index
type - string

transactionIndex

title - transaction index
type - string

transactionHash

title - transaction hash
type - string

blockHash

title - block hash
type - string

blockNumber

title - block number
type - string

address

title - address
type - string

data

title - data
type - string

topics

Array

title - topics
title - 32 hex encoded bytes
type - string

logsBloom

title - Bloom filter
type - string

root

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

status

title - status
type - string
description - Either 1 (success) or 0 (failure). Only specified for transactions included after the Byzantium upgrade.

effectiveGasPrice

title - effective gas price
type - string
description - 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).

blobGasPrice

title - blob gas price
type - string
description - The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.