cardexscan-swap
Installation
SKILL.md
CardexScan Swap Aggregator
DEX aggregator with multi-DEX routing, trending tokens, and trade history.
Scripts
Estimate Swap
node scripts/estimate.js --token-in lovelace --token-out-policy <id> --token-out-asset <hex> --amount 10000000
Build Swap Transaction
node scripts/build.js --address <bech32> --token-in lovelace --token-out-policy <id> --token-out-asset <hex> --amount 10000000
Trending Tokens
node scripts/trending.js [--timeframe 24h] [--count 20]
Key Concepts
- Token format:
"lovelace"for ADA,{policyId, assetName}for tokens - Amounts in base units (lovelace for ADA)
- Requires
CARDEXSCAN_API_KEYenv var - Returns splits across multiple DEXes for best execution
Related skills