track SPL token swap transactions to calculate the token price and get information about wallets

Streams DEX trades on Solana as they happen, where buy currency mint address is EPjFWd…Dt1v and sell currency mint address is 111111…1111: transaction signature, program address, protocol name, buy amount, buy account address, buy decimals, buy fungible and 13 more fields.

By Akshat · saved 19 April 2024 · run 10 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}, Sell: {Currency: {MintAddress: {is: "11111111111111111111111111111111"}}}}}
    ) {
      Transaction {
        Signature
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolName
        }
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            Decimals
            Fungible
            Symbol
            MintAddress
            Native
            Name
          }
          Price
        }
        Sell {
          Account {
            Address
          }
          Currency {
            Decimals
            Fungible
            Symbol
            MintAddress
            Native
            Name
          }
          Price
        }
      }
    }
  }
}

Similar queries