Imported from aashutosh396/mindpalace (
mindpalace/skills/global/finance/emblem-token-swap/SKILL.md). Install upstream withnpx skills add aashutosh396/mindpalace --skill emblem-token-swap. Copyright stays with the author (MIT).
Emblem Token Swap
Guided token swapping via EmblemAI with automatic route optimization. Swap on Solana, Ethereum, Base, BSC, Polygon, and Hedera; bridge cross-chain via ChangeNow (500+ currencies).
Requires: npm install -g @emblemvault/agentwallet
When to use
- "Swap SOL to USDC" / "Exchange ETH for USDT"
- "Convert my tokens" / "Bridge tokens to Base"
Chain → tools
| Chain | Quote | Swap | Balance | Token search |
|---|---|---|---|---|
| Solana | splBuyIntent (quote mode) |
splBuyIntent |
solanaBalances |
findSolanaSwapToken |
| Ethereum | ethSwapQuote |
ethSwap |
ethGetBalances |
searchCryptoByName |
| Base | baseSwapQuote |
baseSwap |
baseGetBalances |
searchEvmTokensBirdeye |
| BSC | bscSwapQuote |
bscSwap |
bscGetBalances |
searchEvmTokensBirdeye |
| Polygon | polygonSwapQuote |
polygonSwap |
polygonGetBalances |
searchEvmTokensBirdeye |
| Hedera | hederaTokensSwapQuote |
hederaTokensSwap |
hederaGetBalances |
hederaFindTokens |
| Cross-chain | getChangeNowSwapQuote |
swapUsingChangeNow |
— | getChangeNowSupportedCurrencies |
Notes: Solana's splBuyIntent handles both quote and execution and accepts
name/symbol/CA plus flexible amounts ($USD, SOL, or token quantity). EVM chains
route through automatic DEX aggregation. Bitcoin has balances
(getBTCBalances) but no on-chain swap — use ChangeNow to bridge BTC.
Safe swap workflow (review-first)
- Check balance — confirm enough of the source token (e.g.
solanaBalances). - Get a quote — preview before executing (e.g.
splBuyIntentquote mode). - Execute — safe mode requires explicit confirmation before swapping.
- Verify — re-check balances after.
Quick start
npm install -g @emblemvault/agentwallet
# Solana swap
emblemai --agent --profile default -m "Use splBuyIntent to swap 5 SOL for USDC on Solana"
# Cross-chain bridge quote
emblemai --agent --profile default -m "Use getChangeNowSwapQuote to quote bridging 0.05 ETH from Ethereum to SOL on Solana"
Patterns
# Solana — by token amount / dollar amount / token name
emblemai --agent --profile default -m "Use splBuyIntent to swap 0.5 SOL for USDC"
emblemai --agent --profile default -m "Use splBuyIntent to swap \$20 of SOL for JUP"
emblemai --agent --profile default -m "Use splBuyIntent to swap 100 USDC for BONK"
# EVM — quote then execute
emblemai --agent --profile default -m "Use ethSwapQuote to quote 0.01 ETH to USDC, then use ethSwap to execute"
emblemai --agent --profile default -m "Use baseSwapQuote to quote 0.005 ETH to USDC on Base"
emblemai --agent --profile default -m "Use bscSwapQuote to quote 0.1 BNB to USDT on BSC"
Notes
- Pass an explicit
--profilewhen more than one profile exists. - Never broadcast a value-moving swap without explicit user confirmation.