solana_dextrades_

Returns one DEX trade on Solana: program address, protocol family, protocol name, buy amount, buy account address, buy metadata address, buy currency key and 33 more fields.

By Omkar_BQ · saved 24 February 2025 · Bitquery API v2

What it returns

The query

query {
  Solana(network: solana) {
    DEXTrades(where: {Transaction: {Result: {Success: true}}}, limit: {count: 1}) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
            MintAddress
          }
          Order {
            LimitPrice
            LimitAmount
            OrderId
          }
        }
        Market {
          MarketAddress
        }
        Sell {
          Amount
          Account {
            Address
          }
          Currency {
            MetadataAddress
            Key
            IsMutable
            EditionNonce
            Decimals
            CollectionAddress
            Fungible
            Symbol
            Native
            Name
            MintAddress
          }
        }
      }
      Instruction {
        Program {
          Address
          AccountNames
          Method
          Parsed
          Name
        }
      }
      Transaction {
        Signer
        Signature
      }
      Block {
        Time
      }
    }
  }
}

Similar queries