Loading...
Loading...
Execute token swaps across 6 blockchains via EmblemAI. Automatic route optimization and cross-chain bridging via ChangeNow. Use when the user wants to swap tokens, exchange crypto, convert between currencies, or bridge assets cross-chain.
npx skill4agent add emblemcompany/agent-skills emblem-token-swapnpm install -g @emblemvault/agentwallet| Chain | Quote Tool | Swap Tool | Balance Tool | Token Search |
|---|---|---|---|---|
| Solana | | | | |
| Ethereum | | | | |
| Base | | | | |
| BSC | | | | |
| Polygon | | | | |
| Hedera | | | | |
| Cross-chain | | | — | |
splBuyIntentgetBTCBalancesnpm install -g @emblemvault/agentwallet
# Solana swap (uses splBuyIntent)
emblemai --agent --profile default -m "Use splBuyIntent to swap 5 SOL for USDC on Solana"
# Cross-chain bridge (uses ChangeNow)
emblemai --agent --profile default -m "Use getChangeNowSwapQuote to get a quote for bridging 0.05 ETH from Ethereum to SOL on Solana"emblemai --agent --profile default -m "Use solanaBalances to show my Solana token balances"emblemai --agent --profile default -m "Use splBuyIntent to get a quote for swapping 5 SOL to USDC"emblemai --agent --profile default -m "Use splBuyIntent to swap 5 SOL for USDC on Solana"emblemai --agent --profile default -m "Use solanaBalances to show my updated balances"# By token amount
emblemai --agent --profile default -m "Use splBuyIntent to swap 0.5 SOL for USDC"
# By dollar amount
emblemai --agent --profile default -m "Use splBuyIntent to swap $20 of SOL for JUP"
# By token name
emblemai --agent --profile default -m "Use splBuyIntent to swap 100 USDC for BONK"# Ethereum
emblemai --agent --profile default -m "Use ethSwapQuote to get a quote for swapping 0.01 ETH to USDC, then use ethSwap to execute"
# Base
emblemai --agent --profile default -m "Use baseSwapQuote to quote 0.005 ETH to USDC on Base"
# BSC
emblemai --agent --profile default -m "Use bscSwapQuote to quote 0.1 BNB to USDT on BSC"
# Polygon
emblemai --agent --profile default -m "Use polygonSwapQuote to quote 10 POL to USDC on Polygon"emblemai --agent --profile default -m "Use hederaTokensSwapQuote to get a quote for 100 HBAR to USDC, then use hederaTokensSwap to execute"emblemai --agent --profile default -m "Use getChangeNowSwapQuote to quote bridging 0.1 ETH to SOL"
emblemai --agent --profile default -m "Use getChangeNowSupportedCurrencies to show available bridge currencies"| Bad | Good |
|---|---|
| |
| |
| |
bash scripts/swap-helper.sh