sol swop 1 trans

Returns balance updates and DEX trades on Solana, where transaction signature is 31vw6C…BB6R: block time, parent slot, post balance, pre balance, protocol name, buy amount, buy currency symbol and 2 more fields.

By Tender · saved 6 May 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    BalanceUpdates(
      where: {Transaction: {Signature: {is: "31vw6CeLj9SbtJUpgcdXa4KD4BtrCwvJFU4PD1h2XcDs9pa9fATSbnTtEzhMrmGRRZh3P8VJ28HuaYdvks2tBB6R"}}}
    ) {
      Block {
        Time
        ParentSlot
      }
      BalanceUpdate {
        PostBalance
        PreBalance
      }
    }
    DEXTrades(
      where: {Transaction: {Signature: {is: "31vw6CeLj9SbtJUpgcdXa4KD4BtrCwvJFU4PD1h2XcDs9pa9fATSbnTtEzhMrmGRRZh3P8VJ28HuaYdvks2tBB6R"}}}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Amount
          Currency {
            Symbol
          }
        }
        Sell {
          Currency {
            Symbol
          }
          Amount
        }
      }
    }
  }
}

Similar queries