(web3 in python)
I would like to "swap" BNB for pegged ETH on the binance smart chain using pancakeswap.
However, I have difficulties understanding what to put for the "path" variable.
The documentation says about the path variable:
An array of token addresses. path.length must be >= 2. Pools for each consecutive pair of addresses must exist and have liquidity.
I understood (from uniswap analogue) that the first address must be WETH (BNB on BSC), but that is a token and I am trying to swap native BNB.
Also, the factory contract has a function "getPair" to obtain a pool between the tokens that you would like to swap. But what "token" address to put for native BNB (which is not a "token", is it?)?
How to create (and understand) this path variable in this case?