Transaction History by Token ~ Sky Test

Returns DEX trades on Ethereum, where transaction hash is 0xf5f2…8b0f: sell amount, sell amount in USD, sell smart contract, buy amount, buy amount in USD, buy smart contract, from and transaction hash.

By Et · saved 21 May 2024 · run 18 times · Bitquery API v2

What it returns

Filters

The query

query ($address: String!) {
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {TransactionStatus: {Success: true}, any: [{Trade: {Buy: {Currency: {SmartContract: {is: $address}}}}}, {Trade: {Sell: {Currency: {SmartContract: {is: $address}}}}}], Transaction: {Hash: {is: "0xf5f2ceb58fe2b06cb19cd39d810b1ace34ee13cbd36a9757e17f93ed2f648b0f"}}}
    ) {
      Trade {
        Sell {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
        }
        Buy {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
        }
      }
      Transaction {
        From
        Hash
      }
    }
  }
}

Variables

{"address": "0x6d551bd441fb65513c0d815747b3409c1eb56886"}

Similar queries