Subscription - Calls API examples - All fields

Streams the latest calls and transactions on Ethereum as they happen: arguments index, arguments name, path index, path name, path type, arguments type, integer and 59 more fields.

By gaurav · saved 10 August 2023 · Bitquery API v2

What it returns

The subscription

subscription {
  EVM(network: eth, trigger_on: head) {
    Calls(orderBy: {descending: Block_Time}) {
      Arguments {
        Index
        Name
        Path {
          Index
          Name
          Type
        }
        Type
        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
          }
        }
      }
      Call {
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        EnterIndex
        Error
        ExitIndex
        From
        Gas
        GasUsed
        Index
        Input
        InternalCalls
        LogCount
        LogCount
        Opcode {
          Code
          Name
        }
        Reverted
        SelfDestruct
        Success
        To
        Value
      }
    }
    Transactions {
      Block {
        BaseFee
        Coinbase
        Date
        Difficulty
        GasLimit
        GasUsed
        Hash
        Nonce
        Number
        ParentHash
        Time
      }
      Transaction {
        CallCount
        Cost
        Data
        From
        Gas
        GasFeeCap
        GasPrice
        GasTipCap
        Hash
        Index
        Nonce
        Protected
        To
        Type
        Value
      }
      TransactionStatus {
        EndError
        FaultError
        Success
      }
      Receipt {
        Bloom
        ContractAddress
        ContractAddressCode {
          Hash
          Size
          Suicided
        }
        CumulativeGasUsed
        GasUsed
        PostState
        PostState
        Status
        Type
      }
    }
  }
}

Similar queries