Getting opcode for specific smart contract call

Returns the latest 10 calls on Ethereum, where call to is 0x2946…a20b and signature name is startAuction: chain ID, block time, returns index, returns name, path index, path name, path type and 31 more fields.

By gaurav · saved 26 December 2023 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    Calls(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Call: {To: {is: "0x29469395eaf6f95920e59f858042f0e28d98a20b"}, Signature: {Name: {is: "startAuction"}}}}
    ) {
      ChainId
      Block {
        Time
      }
      Returns {
        Index
        Name
        Path {
          Index
          Name
          Type
        }
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Arguments {
        Index
        Name
        Path {
          Index
          Name
          Type
        }
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Call {
        Opcode {
          Code
          Name
        }
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        Index
        EnterIndex
        ExitIndex
        Success
        Reverted
        From
        GasUsed
        Gas
        To
        Value
        Signature {
          Parsed
          Signature
          SignatureHash
          Name
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "hash": "0x70af43f6239691bf9db98d837bc0d771a1394680095f19868f3a4b0fd326e568"
}

Similar queries