smart contract calls query

Returns 200 smart contract calls on Ethereum and BNB Chain, where smart contract address is 0xbb4C…095c and smart contract method is 095ea7b3, sorted by block timestamp time call depth: transaction hash, tx from address, call depth and timestamp time.

By gaurav · saved 27 December 2021 · Bitquery API v1

What it returns

Filters

The query

query MyQuery($address: String!, $heightStart: Int!, $heightEnd: Int!, $total: Int!) {
  ethereum(network: bsc) {
    smartContractCalls(
      external: true
      smartContractAddress: {is: $address}
      smartContractMethod: {is: "095ea7b3"}
      height: {between: [$heightStart, $heightEnd]}
      options: { limit: $total asc: ["block.timestamp.time","callDepth"]}
    ) {
      transaction {
        hash
        txFrom {
          address
        }
      }
      callDepth
      block{
        timestamp{
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
    }
  }
}

Variables

{"address":"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","heightStart":11059283,"heightEnd":12059283,"total":200}

Similar queries