New contract creation tx on ethereum with type_usage

New contract creation tx on ethereum with type

Returns the latest 10 calls, where transaction type is 2: transaction hash, state changes address, change after call index, location, state changes value, returns name, integer and 29 more fields.

By Omkar_BQ · saved 30 January 2024 · run 7 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM {
    Calls(
      orderBy: {descending: Block_Time}
      limit: {count: 10}
      where: {Call: {Create: true}, Transaction: {Type: {eq: 2}}}
    ) {
      Transaction {
        Hash
      }
      StateChanges {
        Address
        ChangeAfterCallIndex
        Location
        Value
      }
      Returns {
        Name
        Value {
          __typename
          ... 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
          }
        }
      }
      Receipt {
        ContractAddress
        CumulativeGasUsed
        GasUsed
        Status
        Type
      }
      Call {
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        EnterIndex
        Error
        ExitIndex
        From
        Gas
        Index
        InternalCalls
        Opcode {
          Code
          Name
        }
        SelfDestruct
        Signature {
          Name
        }
        Success
        Value
      }
      Arguments {
        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
          }
        }
      }
    }
  }
}

Similar queries