genki sol duplicates block slot

Returns DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is 9L2UhB…ix4s and transaction signature is 3jqJyb…wSTg: block time, slot, program address, protocol family, protocol name, account owner, account address and 14 more fields.

By Divyasshree · saved 3 October 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String, $base: String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $base}}}, Currency: {MintAddress: {is: $token}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}, Signature: {is: "3jqJybXRVcM79bi6wGHujovDrb5AUjtbAiwVT6ztJx1MNC8HRa1tq8YdBPaGvjQ1WQYAYzLYUMZ44SoQonrcwSTg"}}}
    ) {
      Block {
        allTime: Time
        Slot
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Account {
          Owner
          Address
          Token {
            Owner
          }
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
        Currency {
          Name
        }
      }
      Transaction {
        FeeInUSD
        Signature
      }
    }
  }
}

Variables

{
  "token": "9L2UhB5U3ZNZSsac8Gj13JU6SnGNZTcnXbxhHNeuix4s",
  "base": "So11111111111111111111111111111111111111112"
}

Similar queries