input bytecode for a transaction

Returns calls and transfers on Ethereum, where transaction hash is 0x0005…8e88: chain ID, block time, code, call path, caller index, create, delegated and 40 more fields.

By gaurav · saved 9 April 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $hash: String) {
  EVM(dataset: combined, network: $network) {
    Calls(where: {Transaction: {Hash: {is: $hash}}}) {
      ChainId
      Block {
        Time
      }
      Call {
        Opcode {
          Code
        }
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        EnterIndex
        Error
        ExitIndex
        From
        Gas
        GasUsed
        Index
        Input
        InternalCalls
        LogCount
        Signature {
          Name
        }
        Value
      }
      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 {
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        Index
        EnterIndex
        ExitIndex
        Success
        Reverted
        From
        GasUsed
        Gas
        To
        Value
        Signature {
          Parsed
          Signature
          SignatureHash
          Name
        }
      }
    }
    Transfers(where: {Transaction: {Hash: {is: $hash}}}) {
      Block {
        Time
      }
      ChainId
      Call {
        Index
        CallerIndex
        Value
      }
      Transfer {
        Sender
        Receiver
        Amount
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
    }
  }
}

Variables

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

Similar queries