Solana dextrades

Returns the latest 20 DEX trades on Solana: accounts address, is writable, token mint, token owner, program ID, call path, external seq number and 44 more fields.

By gaurav · saved 3 March 2026 · run 6 times · Bitquery API v2

What it returns

The query

{
  Solana {
    DEXTrades(limit: {count: 20}, orderBy: {descending: Block_Time}) {
      Instruction {
        Accounts {
          Address
          IsWritable
          Token {
            Mint
            Owner
            ProgramId
          }
        }
        CallPath
        ExternalSeqNumber
        Index
        InternalSeqNumber
        Program {
          AccountNames
          Address
          Json
          Method
          Name
          Parsed
        }
      }
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Buy {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Uri
            Decimals
            Symbol
            Name
            MintAddress
          }
          PriceInUSD
          Price
        }
        Sell {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Uri
            Decimals
            Symbol
            Name
            MintAddress
          }
          PriceInUSD
          Price
        }
      }
      Block {
        Time
        Slot
        Hash
        Height
      }
      Transaction {
        Signature
        FeePayer
        Signer
        Fee
        FeeInUSD
        Result {
          Success
        }
      }
    }
  }
}

Similar queries