Filtering arguments

Returns 10 arguments on Ethereum and Avalanche, where smart contract address is 0x262d…378a, smart contract method is swapEx…kens and argument is path, sorted by block height transaction hash, highest first: block height, argument name, value value, transaction hash, address address, smart contract signature name and smart contract signature signature.

By Aparna Sridhar · saved 19 December 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: avalanche) {
    arguments(
      options: {desc: ["block.height", "transaction.hash"], limit: 10}
      smartContractAddress: {is: "0x262dcfb36766c88e6a7a2953c16f8defc40c378a"}
    smartContractMethod:{is: "swapExactTokensForTokens"}
      argument: {is: "path"}
      
    ) {
      block {
        height
      }
      argument {
        name
      }
      value {
        value
      }
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
      }
      smartContractSignature {
        __typename
        ... on Method {
          name
          signature
        }
      }
    }
  }
}

Similar queries