2) Get Any Pair Created From Factory

Returns the latest argument on Ethereum and klaytn, where smart contract address is 0x36fa…db2b and smart contract event is PairCreated: reference address and block height.

By Luke Halley · saved 20 December 2022 · run 22 times · Bitquery API v1

What it returns

Filters

The query

query GetPairCreatedByFactory($network: EthereumNetwork!, $limit: Int!, $factoryAddress: String!) {
  ethereum(network: $network) {
    arguments(
      smartContractAddress: {is: $factoryAddress}
      smartContractEvent: {is: "PairCreated"}
      options: {desc: "block.height", limit: $limit}
    ) {
      reference {
        address
      }
      block {
        height
      }
    }
  }
}

Variables

{
  "network": "klaytn",
  "limit": 1,
	"factoryAddress": "0x36fae766e51f17f8218c735f58426e293498db2b"
}

Similar queries