📄️ 第一步:快速启动
The SwapX SDK exists to help developers build on top of SwapX. It's designed to run in any environment that can execute JavaScript (think websites, node scripts, etc.). While simple enough to use in a hackathon project, it's also robust enough to power production applications.
📄️ 第二步:获取数据
Looking for a quickstart?
📄️ 第三步:定价
Looking for a quickstart?
📄️ 第四步:贸易
Looking for a quickstart?
📄️ 第五步:获取配对地址
The most obvious way to get the address for a pair is to call getPair on the factory. If the pair exists, this function will return its address, else address(0) (0x0000000000000000000000000000000000000000).