Skip to main content

BlockTransaction

The BlockTransaction object represents a transaction included within a specific block.

Schema Definition

type BlockTransaction {
hash: String!
timestamp: UInt64!
to: String
from: String
gas: UInt64!
gasPrice: UInt256
gasTipCap: UInt256
gasFeeCap: UInt256
value: UInt256
nonce: UInt64!
}

Fields

FieldTypeDescription
hashString! non-null scalarThe unique transaction hash used to identify this transaction on the blockchain.
timestampUInt64! non-null scalarUnix timestamp (in seconds) when the transaction was first confirmed.
toString scalarThe recipient address. Returns null for contract creation transactions.
fromString scalarThe sender address that initiated the transaction.
gasUInt64! non-null scalarThe gas limit allocated for this transaction.
gasPriceUInt256 scalarLegacy gas price in wei (used in pre-EIP-1559 transactions). Returns null for EIP-1559 transactions.
gasTipCapUInt256 scalarMaximum priority fee per gas in wei (EIP-1559). Returns null for legacy transactions.
gasFeeCapUInt256 scalarMaximum total fee per gas in wei (EIP-1559). Returns null for legacy transactions.
valueUInt256 scalarAmount of native currency (e.g., ETH) transferred in wei. Use value / 10^18 to convert to ETH.
nonceUInt64! non-null scalarTransaction sequence number from the sender's account.

Member Of

BlockTransactionList object