Skip to main content

Transaction

The Transaction object represents an individual blockchain transaction.

Schema Definition

type Transaction {
hash: String!
blockNum: UInt64!
timestamp: UInt64!
confirmations: UInt64!
to: String
from: String
gas: UInt64!
gasPrice: UInt256
gasTipCap: UInt256
gasFeeCap: UInt256
value: UInt256
nonce: UInt64!
block: Block!
}

Fields

FieldTypeDescription
hashString! non-null scalarThe unique transaction hash used to identify this transaction on the blockchain.
blockNumUInt64! non-null scalarThe block number in which this transaction was included.
timestampUInt64! non-null scalarUnix timestamp (in seconds) when the transaction was first confirmed.
confirmationsUInt64! non-null scalarNumber of blocks confirmed after this transaction's block.
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.
blockBlock! non-null objectAn object representing the block containing this transaction.

Returned By

transaction query

Member Of

TransactionList object