Approve Filter Based on Spender

Returns arguments on Ethereum, where value is 0xdef1…5eff, smart contract method is approve and argument is spender: transaction hash, argument name, argument type and value value.

By lukas · saved 12 June 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($network: EthereumNetwork, $address: String!) {
  ethereum(network: $network) {
    arguments(
      height: {is: 17452675}
      smartContractMethod: {is: "approve"}
      argument: {is: "spender"}
      argumentType: {is: "address"}
      value: {is: $address}
    ) {
      transaction {
        hash
      }
      argument {
        name
        type
      }
      value {
        value
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "address": "0xdef1c0ded9bec7f1a1670819833240f027b25eff"
}

Similar queries