twoHopSwapV2

Returns the latest DEX trades on Solana, where program method is twoHopSwapV2: block time, transaction signature, instruction index, buy currency symbol, buy amount, sell currency symbol and sell amount.

By Aleksey · saved 12 January 2025 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query {
  Solana {
    DEXTrades(
      orderBy: {
        descending: Block_Time
      }
      where: {
      Instruction: {
        Program: {
          Method: {
            is: "twoHopSwapV2"
          }
        }
      }
    }) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Instruction {
        Index
      }
      Trade {
        Buy {
          Currency {
            Symbol
          }
          Amount
        }
        Sell {
          Currency {
            Symbol
          }
          Amount
        }
      }
    }
  }
}

Similar queries