Websocket to listen latest USDT Pair created on Uniswap v2

Streams the latest 10 events on Ethereum as they happen, where log smart contract is 0x5c69…aa6f and signature name is PairCreated: transaction hash, signature name, arguments name, arguments index, arguments type, integer, value address and 4 more fields.

By gaurav · saved 11 July 2023 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth, trigger_on: head) {
    Events(
      where: {Log: {Signature: {Name: {is: "PairCreated"}}, SmartContract: {is: "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"}}, Arguments: {includes: {Name: {in: ["token0", "token1"]}, Value: {Address: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Transaction {
        Hash
      }
      Log {
        Signature {
          Name
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
        }
      }
    }
  }
}

Similar queries