swap-build
Installation
SKILL.md
KyberSwap Build Skill
Build swap transactions using the KyberSwap Aggregator. Given a token pair, amount, and sender address, fetch the best route and generate encoded calldata ready for on-chain submission.
This is a three-step process:
- GET the optimal route (same as the quote skill)
- Show quote details and ask for user confirmation
- POST to build the encoded transaction calldata
Input Parsing
The user will provide input like:
100 USDC to ETH on arbitrum from 0xAbc123...1 ETH to USDC on ethereum from 0xAbc123... slippage 1000.5 WBTC to DAI on polygon from 0xAbc123... to 0xDef456...