Transaction Call Trace Arbitrum

Smart contract calls to an nft contract

Returns the latest 10 calls on Arbitrum, where transaction hash is 0x0ca5…589b: from, gas, gas used, to, call value, call path, code and 22 more fields.

By Divyasshree N · saved 13 September 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query already reads history - it uses the combined dataset, which
#   needs the historical data add-on for this chain.
#
#   Without the add-on it fails with 'access restricted: your plan only allows
#   realtime'. Drop the dataset argument to fall back to the recent window.
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

query myquery($network: evm_network!, $hash: String!) {
  EVM(dataset: combined, network: $network) {
    Calls(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Transaction: {Hash: {is: $hash}}}
    ) {
      Call {
        From
        Gas
        GasUsed
        To
        Value
        CallPath
        Opcode {
          Code
          Name
        }
        SelfDestruct
        Create
        Delegated
        Depth
        InternalCalls
        Success
        Reverted
        Output
        LogCount
        Input
      }
      Transaction {
        Hash
      }
      Arguments {
        Index
        Path {
          Name
        }
        Type
        Name
        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
          }
        }
      }
    }
  }
}

Variables

{
  "hash": "0x0ca5e462cace62c893cefb57c4491eabf9aebe873a86f9cb16377a127b17589b",
  "network": "arbitrum"
}

Similar queries