query one block

Returns 100000 DEX trades on Solana, where block slot is 335306477, sorted by block height: block time, slot, accounts address, transaction signature, signer, buy amount, buy currency mint address and 6 more fields.

By Michael x · saved 23 April 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}}, Block: {Slot: {eq: "335306477"}}}
      limit: {count: 100000, offset: 0}
      orderBy: {ascending: Block_Height}
    ) {
      Block {
        Time
        Slot
      }
      Instruction {
        Accounts {
          Address
        }
      }
      Transaction {
        Signature
        Signer
      }
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries