From ave-cloud-skill
Executes self-custody DEX trades on EVM (BSC, ETH, Base) and Solana chains via AVE API. Gets swap quotes, builds unsigned transactions, signs/sends using local private keys or mnemonics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ave-cloud-skill:trade-chain-walletThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Self-custody DEX trading via the AVE Cloud Chain Wallet API. Use this only when the user explicitly wants local signing, private-key or mnemonic control, or an external signer workflow. For shared trade-path rules and current PROD quirks, see [operator-playbook.md](../../references/operator-playbook.md).
Self-custody DEX trading via the AVE Cloud Chain Wallet API. Use this only when the user explicitly wants local signing, private-key or mnemonic control, or an external signer workflow. For shared trade-path rules and current PROD quirks, see operator-playbook.md.
Trading fee: 0.6% | Rebate to feeRecipient: 20%
| EN | ZH |
|---|---|
| "use my private key", "sign with my key" | "用我的私钥", "用私钥签名" |
| "use my mnemonic", "use my seed phrase" | "用我的助记词", "用种子短语" |
| "sign locally", "self-custody" | "本地签名", "自托管" |
| "use my own wallet" | "用我自己的钱包" |
| "build an unsigned tx", "external signer" | "构建未签名交易", "外部签名" |
export AVE_API_KEY="your_api_key_here"
export API_PLAN="free" # free | normal | pro
export AVE_EVM_PRIVATE_KEY="0x..." # optional for EVM signed send
export AVE_SOLANA_PRIVATE_KEY="base58..." # optional for Solana signed send
export AVE_MNEMONIC="word1 word2 ... word12" # optional fallback
Get a key at https://cloud.ave.ai/register. EVM signed sends also require --rpc-url or AVE_BSC_RPC_URL / AVE_ETH_RPC_URL / AVE_BASE_RPC_URL.
API_PLAN | Write TPS |
|---|---|
free | 1 |
normal | 5 |
pro | 20 |
bsc, eth, base, solana
Preview or create first, then submit only after the path is valid and the user has confirmed execution.
sol (not So11111111111111111111111111111111111111112) for --in-token / --out-token in all trade commands. The full mint address is rejected by the API.approve-chain to approve the swap router. Native coin buys do not need approval. Without approval, swap-evm sell will fail with status 3025: failed to simulate send signed tx.swap value too small. Use at least 0.01 SOL / 0.001 BNB / 0.0001 ETH.swap-solana and create-solana-tx require --fee (lamports). With --use-mev, minimum is 1000000 (0.001 SOL). Use gas-tip to query recommended values.swap-evm requires --rpc-url or the chain env var (AVE_BSC_RPC_URL, etc.) for local signing (nonce, gas price, estimate gas).auto-slippage to get the recommended slippage for a token before trading. The API may override your slippage value.Get estimated output before building or sending anything. Response includes spender field for approval.
python scripts/ave_trade_rest.py quote --chain <chain> --in-amount <amount> --in-token <token> --out-token <token> --swap-type buy|sell
Query recommended slippage (bps) for a token before trading.
python scripts/ave_trade_rest.py auto-slippage --chain <chain> --token <token_address> [--use-mev]
Query recommended gas prices per chain. Returns low/average/high tiers in lamports (Solana) or wei (EVM).
python scripts/ave_trade_rest.py gas-tip
Approve an ERC-20 token for the swap router before selling. Not needed for native coin buys. Gets spender from quote, builds and signs approve(MAX_UINT256) tx locally.
python scripts/ave_trade_rest.py approve-chain --chain bsc --token <erc20_address> [--rpc-url https://...]
Create, sign, and send an EVM swap locally with a key or mnemonic.
python scripts/ave_trade_rest.py swap-evm --chain bsc --rpc-url https://... --in-amount <amount> --in-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --out-token <token> --swap-type buy --slippage 500 [--auto-slippage] [--use-mev]
Create, sign, and send a Solana swap locally with a key or mnemonic.
python scripts/ave_trade_rest.py swap-solana --in-amount <amount> --in-token sol --out-token <token> --swap-type buy --slippage 500 --fee 50000000 [--auto-slippage] [--use-mev]
Build an unsigned EVM swap transaction for an external signer.
python scripts/ave_trade_rest.py create-evm-tx --chain bsc --creator-address 0x... --in-amount <amount> --in-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --out-token <token> --swap-type buy --slippage 500
Submit a pre-signed EVM transaction returned from create-evm-tx.
python scripts/ave_trade_rest.py send-evm-tx --chain bsc --request-tx-id <id> --signed-tx 0x...
Build an unsigned Solana swap transaction for an external signer.
python scripts/ave_trade_rest.py create-solana-tx --creator-address <wallet> --in-amount <amount> --in-token sol --out-token <token> --swap-type buy --slippage 500 --fee 50000000
Submit a pre-signed Solana transaction returned from create-solana-tx.
python scripts/ave_trade_rest.py send-solana-tx --request-tx-id <id> --signed-tx <signed_tx>
Buy a token, then approve and sell it back. Approval is only needed once per token per spender.
# 1. Check gas and slippage
python scripts/ave_trade_rest.py gas-tip
python scripts/ave_trade_rest.py auto-slippage --chain bsc --token <token>
# 2. Buy (native coin -> token, no approval needed)
python scripts/ave_trade_rest.py swap-evm --chain bsc --in-amount 1000000000000000 --in-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --out-token <token> --swap-type buy --slippage 1000
# 3. Approve token for selling (one-time per token)
python scripts/ave_trade_rest.py approve-chain --chain bsc --token <token>
# 4. Sell (token -> native coin)
python scripts/ave_trade_rest.py swap-evm --chain bsc --in-amount <amount> --in-token <token> --out-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --swap-type sell --slippage 1000
No approval needed on Solana. Use sol for native token.
# Buy
python scripts/ave_trade_rest.py swap-solana --in-amount 10000000 --in-token sol --out-token <token> --swap-type buy --slippage 1000 --fee 1000000 --use-mev
# Sell (use full token address for in-token, sol for out-token)
python scripts/ave_trade_rest.py swap-solana --in-amount <amount> --in-token <token_address> --out-token sol --swap-type sell --slippage 1000 --fee 1000000 --use-mev
Preview first, then build the unsigned transaction, then submit the signed payload.
python scripts/ave_trade_rest.py quote --chain bsc --in-amount 500000000000000 --in-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --out-token <token> --swap-type buy
python scripts/ave_trade_rest.py create-evm-tx --chain bsc --creator-address 0x... --in-amount 500000000000000 --in-token 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee --out-token <token> --swap-type buy --slippage 500
python scripts/ave_trade_rest.py send-evm-tx --chain bsc --request-tx-id <id> --signed-tx 0x...
Use shared references for current PROD quirks, test caps, token conventions, error wording, response shape, and fuller trade API details.
npx claudepluginhub avecloud/ave-cloud-skill --plugin ave-cloud-skillSwaps tokens via OKX DEX aggregator across 20+ chains (EVM, Solana, Sui, Tron, Ton). Supports quotes, one-shot execute with approve+trade, and calldata-only unsigned swaps with slippage and MEV protection.
Executes on-chain DEX swaps, wallet portfolio queries, gas estimation, and transaction broadcasting on EVM/Solana chains via OKX Web3 API. Use for token swaps, balance checks, or tx broadcast on Ethereum, Solana, Base, BSC, Arbitrum, Polygon, etc.
Buy and sell meme coins and crypto tokens on Solana, BSC, Base, or Ethereum via GMGN API. Supports single swap, multi-wallet batch trading, limit orders, stop loss, take profit, trailing orders, and order status queries.