Skip to main content

BlockFilter

The BlockFilter input specifies subsets of block data to be retrieved.

Schema Definition

input BlockFilter {
numberGte: UInt64
numberLte: UInt64
timestampGte: UInt64
timestampLte: UInt64
transactionCountGte: Int
transactionCountLte: Int
sizeGte: UInt64
sizeLte: UInt64
gasUsedGte: UInt64
gasUsedLte: UInt64
gasLimitGte: UInt64
gasLimitLte: UInt64
difficultyGte: UInt256
difficultyLte: UInt256
}

Fields

FieldTypeDescription
numberGteUInt64 scalarFilter blocks with a block number greater than or equal to this value.
numberLteUInt64 scalarFilter blocks with a block number less than or equal to this value.
timestampGteUInt64 scalarFilter blocks with a timestamp greater than or equal to this value (Unix timestamp in seconds).
timestampLteUInt64 scalarFilter blocks with a timestamp less than or equal to this value (Unix timestamp in seconds).
transactionCountGteInt scalarFilter blocks containing a number of transactions greater than or equal to this value.
transactionCountLteInt scalarFilter blocks containing a number of transactions less than or equal to this value.
sizeGteUInt64 scalarFilter blocks with a size (in bytes) greater than or equal to this value.
sizeLteUInt64 scalarFilter blocks with a size (in bytes) less than or equal to this value.
gasUsedGteUInt64 scalarFilter blocks with total gas used greater than or equal to this value.
gasUsedLteUInt64 scalarFilter blocks with total gas used less than or equal to this value.
gasLimitGteUInt64 scalarFilter blocks with a gas limit greater than or equal to this value.
gasLimitLteUInt64 scalarFilter blocks with a gas limit less than or equal to this value.
difficultyGteUInt256 scalarFilter blocks with mining difficulty greater than or equal to this value.
difficultyLteUInt256 scalarFilter blocks with mining difficulty less than or equal to this value.

Member Of

blockCount query ● blocks query