PA

PancakeSwap V2 Factory (BSC) (Clone)

0xcA14...0c73BNB Smart ChainBNB Smart Chain
factoryDeFi

Contract Level Prompt

Foundational semantic layer for AI interpretation.

psychology
This is the PancakeSwap V2 Factory contract for the Binance Smart Chain network. Use this smart contract to create new token trading pools and look up the address of a pool given the addresses of its two trading tokens.

allPairs()

view

Functional Prompt

Returns the address of a deployed PancakeSwap V2 trading pool given an index. The pools are stored in the order they were created.

Input Parameters

input
indexuint256

The index of the trading pool.

Output Parameters

output
poolAddressaddress

The address of the PancakeSwap V2 trading pool at the queried index.