Websocket for Transaction, events, calls and Transfers for USDT

Streams events and calls on Ethereum as they happen, where log smart contract is 0xdac1…1ec7, call to is 0xdac1…1ec7 and transaction to is 0xdac1…1ec7: chain ID, call index, arguments index, arguments name, path index, path name, path type and 51 more fields.

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

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    Events(
      where: {Log: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}
    ) {
      ChainId
      Call {
        Index
      }
      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
          }
        }
      }
      Log {
        LogAfterCallIndex
        EnterIndex
        ExitIndex
        Index
        SmartContract
        Signature {
          Parsed
          Signature
          SignatureHash
          Name
        }
      }
    }
    Calls(where: {Call: {To: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}) {
      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 {
        CallPath
        CallerIndex
        Create
        Delegated
        Depth
        Index
        EnterIndex
        ExitIndex
        Success
        Reverted
        From
        GasUsed
        Gas
        To
        Value
        Signature {
          Parsed
          Signature
          SignatureHash
          Name
        }
      }
    }
    Transactions(
      where: {Transaction: {To: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}
    ) {
      Transaction {
        AccessList {
          Address
        }
        CallCount
        Cost
        Data
        From
        Gas
        GasFeeCap
        GasPrice
        GasTipCap
        Hash
        Time
        To
        ToCode {
          Hash
          Size
          Suicided
        }
        Type
        Value
      }
    }
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}
    ) {
      Block {
        Time
      }
      ChainId
      Call {
        Index
        CallerIndex
        Value
      }
      Transfer {
        Sender
        Receiver
        Amount
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
    }
  }
}

Similar queries