base pair created

Returns events on Base, where log smart contract is 0x8909…8eC6 and signature name is PairCreated or PoolCreated: smart contract, arguments name, integer, string, value address, big integer, hex and 2 more fields.

By gaurav · saved 2 July 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query PairLaunch($network: evm_network!, $factory: [String!], $pairAddress: [String!]) {
  EVM(network: $network, dataset: combined) {
    Events(
      where: {Log: {SmartContract: {in: $factory}, Signature: {Name: {in: ["PairCreated", "PoolCreated"]}}}, Arguments: {includes: {Value: {Address: {in: $pairAddress}}}}}
    ) {
      Log {
        SmartContract
      }
      Arguments {
        Name
        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
          }
        }
      }
      Block {
        Time
      }
    }
  }
}

Variables

{
  "network": "base",
  "pairAddress": "0x4c36388be6f416a29c8d8eee81c771ce6be14b18",
  "createdAt": "2024-01-29T08:50:42.852Z",
  "tokenAddress": "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
  "weth": "0x4200000000000000000000000000000000000006",
  "factory": "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6"
}

Similar queries