[Ethereum] [Streaming] Get List of Latest Pair Created on Uniswap V2

Query allows you to get PairCreated Event Emitted from Uniswap V2 factory via streaming API.

By Nikhil · saved 31 August 2023 · run 38 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {Log: {SmartContract: {is: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"}, Signature: {Name: {is: "PairCreated"}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 5}
    ) {
      Arguments {
        Index
        Name
        Type
        Value {
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
      }
      Block {
        Time
      }
      Log {
        Index
        Signature {
          Name
        }
      }
    }
  }
}

Similar queries