Checking_For_Bug

Returns the latest 1500 transfers and address details on Ethereum and Polygon, where sender is 0x91dc…2937, receiver is 0x91dc…2937 and address is 0x91dc…2937: amount, currency symbol, currency address, currency name, token type, decimals, entity ID and 9 more fields.

By Omkar Acharekar · saved 27 April 2023 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query ethTransfers($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!) {
  sender: ethereum(network: $network) {
    transfers: transfers(
      sender: {is: $address}
      options: {limit: $limit, offset: $offset, desc: "block.height"}
    ) {
      amount
      currency {
        symbol
        address
        name
        tokenType
        decimals
      }
      entityId
      receiver {
        address
      }
      sender {
        address
      }
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
      }
    }
  }
  receiver: ethereum(network: $network) {
    transfers: transfers(
      receiver: {is: $address}
      options: {limit: $limit, offset: $offset, desc: "block.height"}
    ) {
      amount
      currency {
        symbol
        address
        name
        tokenType
        decimals
      }
      entityId
      receiver {
        address
      }
      sender {
        address
      }
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
      }
    }
  }
  latestBalances: ethereum(network: $network) {
    address(address: {is: $address}) {
      balances {
        value
        currency {
          address
          symbol
          decimals
          name
          tokenType
          tokenId
        }
      }
    }
  }
  nativeBalanceHistory: ethereum(network: $network) {
    address(address: {is: $address}) {
      balances(currency: {is: "MATIC"}) {
        history {
          block
          value
        }
      }
    }
  }
}

Variables

{
  "address": "0x91dccaa260cc4616e1a6e6b693db7207c5e42937",
  "network": "matic",
  "limit": 1500,
  "offset": 0
}

Similar queries