v1 to v2 for smart contract calls

Returns calls: from.

By Kshitij Mahajan · saved 27 February 2025 · Bitquery API v2

What it returns

The query

query MyQuery($methods: [String!], $contract: String, $lastCalled: DateTime) {
  EVM {
    Calls(
      where: {Call: {Signature: {Name: {in: $methods}}, To: {is: $contract}}, Block: {Time: {after: $lastCalled}}}
    ) {
      Call {
        From
      }
    }
  }
}

Variables

{
  "contract": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
  "lastCalled": "2025-02-27T00:00:00Z"
  "methods": ["transfer"]
}

Similar queries