transaction_volume

Returns DEX trades by token on Ethereum, where transaction hash is 0xb54c…18ba, currency smart contract is 0x6dc6…54E2 and DEX protocol name is seaport_v1.4: protocol name, trade amount, side amount, side currency name, fees amount and transaction hash.

By Omkar_BQ · saved 26 September 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Transaction: {Hash: {is: "0xb54cbd03416d8ecc3569c8ea792729e34cee3811cb8e90e1e634b620403118ba"}}, Trade: {Currency: {SmartContract: {is: "0x6dc6001535e15b9def7b0f6A20a2111dFA9454E2"}}, Dex: {ProtocolName: {is: "seaport_v1.4"}}}, Log: {Signature: {Name: {is: "OrderFulfilled"}}}}
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Amount
        Side {
          Amount
          Currency {
            Name
          }
        }
        Fees {
          Amount
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries