Get realtime newly created liquidity pools on Uniswap v2/v3

Streams the latest events on Ethereum as they happen, where log smart contract is 0x5C69…aA6f or 0x1F98…F984 and signature name is PairCreated or PoolCreated: arguments name, arguments type, integer, string, value address, big integer, hex and 3 more fields.

By Akshat · saved 23 May 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription{
  EVM(network: eth) {
    Events(
      orderBy: {descending: Block_Time}
      where: {Log: {Signature: {Name: {in: ["PairCreated", "PoolCreated"]}}, SmartContract: {in: ["0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", "0x1F98431c8aD98523631AE4a59f267346ea31F984"]}}}
    ) {
      Arguments {
        Name
        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
          }
        }
      }
      Transaction {
        Hash
      }
      Log {
        Signature {
          Name
        }
      }
    }
  }
}

Similar queries