User's transfer event trx

Returns the latest 100 transfers on Ethereum, where currency is 0xdac1…1ec7: timestamp time, block height, sender address, receiver address, transaction hash, amount, currency symbol and 3 more fields.

By Isha · saved 29 September 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!,$currency: String!,$address: String!, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      currency:{is:$currency}
  	  any:[{sender:{is: $address}}
					{receiver:{is: $address}}
			]
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }

      amount(amount: {})
      currency {
        symbol
        address
        decimals
        name
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "address":"0x56e6cecbbf49c77583f1e1c51728594a3ae1c184",
  "currency":"0xdac17f958d2ee523a2206206994597c13d831ec7",
  "limit":100,
  "offset":0
}

Similar queries