Copy of Avoiding Memory Limit Exception With Limit Condition in Query

Returns 10000 transactions on Ethereum and Polygon, sorted by amount, highest first: date date, block height, timestamp time, hash, gas value, amount, sender address and 7 more fields.

By Divyasshree N · saved 13 December 2022 · Bitquery API v1

What it returns

The query

query MyQuery {
  ethereum(network: matic) {
    transactions(success: true, date: {}, options: {limit: 10000, desc: "amount"}) {
      date {
        date(format: "%Y-%m-%dT%H:%M:%S")
      }
      block(height: {between: [36000000, 36000400]}) {
        height
        timestamp {
          time
        }
      }
      hash
      gasValue(calculate: sum)
      amount(calculate: sum)
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
          currency {
            name
            tokenType
            symbol
          }
        }
      }
      to {
        address
        annotation
        smartContract {
          contractType
          protocolType
          currency {
            name
            tokenType
            symbol
          }
        }
      }
    }
  }
}

Similar queries