Transer History

Returns 500 transfers on Ethereum, where tx hash is 0x3ea4…c5ba and amount is above 0, sorted by count in count out, highest first: amount, count, entity ID, transaction hash, token ID, currency address, currency symbol and token type.

By Andrey · saved 1 October 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query


            query($network: EthereumNetwork!,
                  $address: String!,
                  $from: ISO8601DateTime,
                  $till: ISO8601DateTime,
                  $limit: Int!,
                  $offset: Int!){
              ethereum(network: $network) {
                transfers(date: {since: $from, till: $till},
                amount: {gt: 0}
                txHash: { is: "0x3ea4cce33d62b63169628d1b46a65d58ced7cba82c06d3f69eb31ba97438c5ba" }
                options: {limit: $limit, offset: $offset, desc: ["count_in","count_out"] asc: "currency.symbol"}){
                    sum_in: amount(calculate: sum,
                      receiver: {is: $address}
                    )
                    sum_out: amount(calculate: sum,
                      sender: {is: $address}
                    )
                    count_in: count(
                      receiver: {is: $address}
                    )
                    count_out: count(
                      sender: {is: $address}
                    )
                  	entityId
                  	transaction {
                      hash
                    }
                    currency {
                      tokenId
                      address
                      symbol
                      tokenType
                    }
                  }
              }
            }

Variables

{"limit":500,"offset":0,"network":"ethereum","address":"0x6f69388f225220a7d91ce9cb52b0e9fe95ae1e12","from":null,"till":null,"dateFormat":"%Y-%m"}

Similar queries