Test Query

Returns one DEX trade on Solana, where transaction signature is 4BW4Yc…csco: fee payer, signer, transaction signature, instruction index, chain ID, sell amount, sell amount in USD and 9 more fields.

By Steve Finkle · saved 4 September 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(limit: {count: 1}, where: {Transaction: {Signature: {is: "4BW4YcHroVZPF5Q4gadxpNVLMZNhbmhx4exjb4wYuuvy51BwN4AKsmCPUKbNU5Ni7r8vnofiPwThZ2CVEFEvcsco"}}}) {
      Transaction {
        FeePayer
        Signer
        Signature
      }
      Instruction {
        Index
      }
      ChainId
      Trade {
        Sell {
          Amount
          AmountInUSD
          Currency {
            Name
          }
        }
        Buy {
          Amount
          Price
          Account {
            Address
            Owner
          }
          Currency {
            Name
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Similar queries