solana trades for tx

Returns DEX trades on Solana, where transaction signature is 5D4RXh…jKHb: block time, method, protocol family, protocol name, buy price, buy price in USD, buy amount and 19 more fields.

By gaurav · saved 7 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

 {
  Solana {
    DEXTrades (
      where:{
        Transaction:{
          Signature:{
            is:"5D4RXhZQupxYMyfBuHPXJMqUevsZUsF1KFZ2pVQF4nh3h75KAHj3HbJQFQBXsHHCruHwGxaVrBWTWCBTF3M4jKHb"
          }
        }
      }
    ) {
      Block {
        Time
      }
      Instruction {
        Program {
          Method
        }
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Price
          PriceInUSD
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
        Sell {
          Price
          PriceInUSD
          Amount
          Account {
            Address
          }
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
            Fungible
            Uri
          }
        }
      }
      Transaction {
        Signature
        Signer
      }
    }
  }
}

Similar queries