eth_to_usd

Returns the latest transaction on Ethereum, where date is 2024-02-05: amount, expression and block height.

By Omkar_BQ · saved 5 February 2024 · run 6 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: ethereum) {
    transactions(
      date: {is: "2024-02-05"}
      options: {desc: "block.height", limit: 1}
    ) {
      amountinUSD: amount(in: USD)
      amount: amount
      ETH_TO_USD_Rate: expression(get: "amountinUSD/amount")
      block {
        height
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "hash": "0x87f82c66e9854a83df4776a9468051bc5e77296df26d54d0dae01ea43adf530e"
}

Similar queries