[Ethereum] where can i find the addresses of the pancakeswap coin pairs smart contracts


where can I find the smart contract address of all (or the major) coin pairs of the pancakeswap AMM. I can't find it anywhere and searching on google yields random articles.

Best Answer

The factory contract - PancakeFactory - is here:


If you read the contract, you'll see that allPairsLength gives you 14,690 pairs. This refers to the number of PancakePair-type contracts.

The addresses can be found by reading the allPairs array in PancakeFactory by specifying the index you want. In the absence of anything clever, like Uniswap's Subgraph API (see "All Pairs In Uniswap") you'll probably just have to write a simple looping function to iterate through the array.


Actually, this API will give you the top 1,000 pairs... (sorted by reserves)


Filter on pair_address.

Related Topic