dex problem

Returns DEX trades on Ethereum, where tx hash is 0x1e68…5fce: transaction hash, gas price, gas, tx from address, address address, contract type, currency name and 15 more fields.

By Ivan · saved 1 July 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      txHash: {is: "0x1e687e11bcab98deeb693927f51685d09fe5c7cdf1cd7d339bea45c9fbcc5fce"}
    ) {
      transaction {
        hash
        gasPrice
        gas
        txFrom {
          address
        }
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
        protocolType
      }
      block {
        height
        timestamp {
          iso8601
        }
      }
      buyAmount
      buyAmountInETH: buyAmount(in: ETH)
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      tradeAmount(in: ETH)
      sellAmount
      sellAmountInETH: sellAmount(in: ETH)
      sellAmountInUsd: sellAmount(in: USD)
      exchange {
        fullName
        fullNameWithId
      }
      gasValueETH: gasValue(in: ETH)
      gasValueUSD: gasValue(in: USD)
      maker {
        address
      }
      taker {
        address
      }
    }
  }
}

Variables

{"address": "0x6a2eBf0B51eE01D716D9712D942346B66dB45C9a",
"limit": 1012}

Similar queries