Axiom V2 Docs Old
  • Introduction
    • What is Axiom?
    • Quickstart
  • Examples
    • Autonomous Airdrop
      • AxiomREPL Code
      • Contract
      • Web App
      • DataQuery-only Version
  • Developers
    • Axiom for Developers
    • Specifying a Query into Axiom
    • AxiomREPL
      • AxiomREPL Examples
    • Exporting a Client Side Prover
    • Handling Axiom Callbacks
    • Common Issues
      • Callback Debugging
  • SDK and REPL Reference
    • Axiom SDK Reference
      • QueryBuilderV2
      • Data Subqueries
        • Header Subquery
        • Account Subquery
        • Storage Subquery
        • Transaction Subquery
        • Receipt Subquery
        • Solidity Nested Mapping Subquery
    • AxiomREPL Reference
      • Circuit Types
      • Circuit Functions
      • Data Functions
      • Compute Functions
  • Protocol Design
    • Architecture Overview
    • Caching Block Hashes
    • Axiom Query Protocol
      • Axiom Query Format
    • ZK Circuits for Axiom Queries
    • Ethereum On-chain Data
    • Guardrails
  • Transparency and Security
    • KZG Trusted Setup
    • Contract Addresses
    • On-chain ZK Verifiers
    • Security
  • Zero Knowledge Proofs
    • Introduction to ZK
    • ZK Examples
    • Getting Started with halo2
    • halo2-repl
  • Additional Resources
    • Axiom V2 Explorer
    • Github
    • Website
    • Telegram
    • Discord
    • Axiom V1 Docs
Powered by GitBook
On this page
  • Description
  • Limits
  • Builder
  • Examples
  1. SDK and REPL Reference
  2. Axiom SDK Reference
  3. Data Subqueries

Transaction Subquery

Query data about a Transaction

PreviousStorage SubqueryNextReceipt Subquery

Last updated 1 year ago

Description

Transaction Subqueries provide information about a transaction that was submitted to the blockchain. provides a lot of useful information when looking at this data.

Limits

Maximum of 32 Transaction subqueries per Query. Each transaction can have a data field of at most 8192 bytes and an access list of at most length 4096 bytes.

Builder

buildTxSubquery(txHash)

Examples

const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
      .field(TxField.MaxPriorityFeePerGas)
      .type(TxType.Eip1559);
const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
      .functionSelector();
const txHash = "0x9890aaedc5df95de7d535faf10c8d1a96a262b79e0fcb2ed52939c8ebd049d29";
const txSubquery: TxSubquery = buildTxSubquery(txHash)
      .calldata(3); // 3rd bytes32-sized value in tx calldata
Etherscan (Goerli)