no-access-query

Returns 200000 DEX trades and instructions on Solana, where block slot is at least 430042461 and block slot is at most 430043460, sorted by block slot: external seq number, call path, internal seq number, instruction index, method, program name, buy amount and 28 more fields.

By Tomas Krason · saved 1 July 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query SolanaStreamQuery($blockSlotMin: String!, $blockSlotMax: String!) {
  Solana {
    DEXTrades(
      where: {any: [{Instruction: {Program: {Method: {in: ["buy", "sell", "buy_v2", "buy_exact_sol_in", "buy_exact_quote_in_v2", "sell_v2"]}, Name: {is: "pump"}}}, Transaction: {Result: {Success: true}}}, {Instruction: {Program: {Method: {in: ["buy_exact_in", "buy_exact_out", "sell_exact_in", "sell_exact_out"]}, Name: {is: "raydium_launchpad"}}, Accounts: {includes: {Address: {is: "FfYek5vEz23cMkWsdJwG2oa6EphsvXSHrGpdALN4g6W1"}}}}, Transaction: {Result: {Success: true}}}], Block: {Slot: {ge: $blockSlotMin, le: $blockSlotMax}}}
      orderBy: {ascending: Block_Slot}
      limit: {count: 200000}
    ) {
      Instruction {
        ExternalSeqNumber
        CallPath
        InternalSeqNumber
        Index
        Program {
          Method
          Name
        }
      }
      Trade {
        Buy {
          Amount
          Account {
            Address
            Owner
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            ProgramAddress
          }
          PriceInUSD
        }
        Sell {
          Amount
          Account {
            Address
            Owner
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
          PriceInUSD
        }
      }
      Transaction {
        Signature
        Index
      }
      Block {
        Slot
        Time
      }
    }
    Instructions(
      where: {Block: {Slot: {ge: $blockSlotMin, le: $blockSlotMax}}, any: [{Instruction: {Program: {Method: {in: ["create", "create_v2"]}, Name: {is: "pump"}}}, Transaction: {Result: {Success: true}}}, {Instruction: {Program: {Method: {is: "initialize"}, Address: {is: "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj"}}, Accounts: {includes: {Address: {is: "FfYek5vEz23cMkWsdJwG2oa6EphsvXSHrGpdALN4g6W1"}}}}, Transaction: {Result: {Success: true}}}, {Instruction: {Program: {Method: {is: "create_pool"}, Name: {is: "pump_amm"}, Address: {is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"}}}, Transaction: {Result: {Success: true}}}, {Instruction: {Program: {Address: {is: "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj"}, Method: {in: ["migrate_to_amm", "migrate_to_cpswap"]}}}, Transaction: {Result: {Success: true}}}]}
      orderBy: {ascending: Block_Slot}
      limit: {count: 200000}
    ) {
      Block {
        Slot
        Time
      }
      Instruction {
        Accounts {
          Address
          Token {
            Mint
            Owner
            ProgramId
          }
        }
        Data
        Program {
          Method
          Name
        }
      }
      Transaction {
        Signature
      }
    }
  }
}

Variables

{
  "blockSlotMin": "430042461",
  "blockSlotMax": "430043460"
}

Similar queries