Transaction
A transaction representing a transfer of value or contract interaction.
Schema Definition
type Transaction {
hash: TransactionHash!
timestamp: Timestamp!
from: Address!
to: Address
value: TokenAmount!
gas: GasInfo!
nonce: Int!
block: Block
confirmations: Int!
status: TransactionStatus
contractCreated: IContract
}
Fields
| Field | Type | Description |
|---|---|---|
hash | Unique 256-bit hash identifying this transaction. | |
timestamp | Timestamp when this transaction was included in a block. | |
from | Address that initiated and signed this transaction. | |
to | Address interface | Recipient address. Null for contract creation transactions. |
value | Amount of native currency transferred, including raw (wei) and formatted values. | |
gas | Gas-related information including limit, price, and actual usage. | |
nonce | The sender's transaction count at the time of submission. Used to order transactions and prevent replays. | |
block | Block object | The block containing this transaction, or null if pending. |
confirmations | Number of blocks mined after this transaction's block. Higher values indicate greater finality. | |
status | TransactionStatus enum | Execution outcome: SUCCESS if completed, FAILED if reverted, PENDING if not yet mined. |
contractCreated | IContract interface | The contract created by this transaction, if this was a contract deployment. |
Returned By
transaction query
Member Of
Contract object ● EOA object ● IContract interface ● NFTContract object ● SingleHolderNFT object ● Token object ● TransactionList object