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
| Field | Type | Description |
|---|---|---|
hash | String! non-null scalar | The unique transaction hash used to identify this transaction on the blockchain. |
blockNum | UInt64! non-null scalar | The block number in which this transaction was included. |
timestamp | UInt64! non-null scalar | Unix timestamp (in seconds) when the transaction was first confirmed. |
confirmations | UInt64! non-null scalar | Number of blocks confirmed after this transaction's block. |
to | String scalar | The recipient address. Returns null for contract creation transactions. |
from | String scalar | The sender address that initiated the transaction. |
gas | UInt64! non-null scalar | The gas limit allocated for this transaction. |
gasPrice | UInt256 scalar | Legacy gas price in wei (used in pre-EIP-1559 transactions). Returns null for EIP-1559 transactions. |
gasTipCap | UInt256 scalar | Maximum priority fee per gas in wei (EIP-1559). Returns null for legacy transactions. |
gasFeeCap | UInt256 scalar | Maximum total fee per gas in wei (EIP-1559). Returns null for legacy transactions. |
value | UInt256 scalar | Amount of native currency (e.g., ETH) transferred in wei. Use value / 10^18 to convert to ETH. |
nonce | UInt64! non-null scalar | Transaction sequence number from the sender's account. |
block | Block! non-null object | An object representing the block containing this transaction. |
Returned By
transaction query
Member Of
TransactionList object