/ave-cloud-skill:ave-trade-chain-walletfrom ave-cloud-skill
Executes self-custody DEX trades via the AVE Cloud Chain Wallet API. Supports swap quotes, unsigned transaction building, and local signing on EVM chains (BSC, ETH, Base) and Solana.
Ships in ave-cloud-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/ave-wallet-suiteRoute broad wallet, market-data, and trading requests across the AVE skill suite.
Use this skill when the user asks for an AVE wallet/trading/data task but the correct sub-skill
is not yet obvious, or when the assistant should guide the user through the full workflow.
If the user mentions private keys, mnemonics, local signing, or self-custody, route DIRECTLY
to ave-trade-chain-wallet — do not use this router skill.
This skill decides between:
- ave-data-rest for snapshot market and token data
- ave-data-wss for live data streams
- ave-trade-chain-wallet for self-custody trading
- ave-trade-proxy-wallet for server-managed proxy-wallet trading
/ave-data-restQuery on-chain crypto data via the AVE Cloud Data REST API (https://cloud.ave.ai/).
Use this skill whenever the user wants to:
- Search for tokens by name, symbol, or contract address
- Get token price, market cap, TVL, volume, or price change data
- View kline/candlestick (OHLCV) chart data for a token or trading pair
- Check top 100 token holders and their distribution
- Browse recent swap transactions for a trading pair
- View trending tokens on a specific chain
- View ranked tokens by topic (hot, meme, gainer, loser, new, AI, DePIN, GameFi, etc.)
- Run a contract security/risk detection report (honeypot, buy/sell tax, ownership)
- Get wallet swap history, token PnL, and holdings
- Get wallet overview and smart wallet discovery
- Get public trading signals
- Get liquidity transactions and transaction details for a pair
- Get trading pair detail
- Get Ondo-mapped kline data
- Batch search token details by address-chain list
- List supported chain identifiers
- Get main/native tokens for a chain
- Get tokens from a specific launchpad or platform (pump.fun, fourmeme, bonk, nadfun)
DO NOT use this skill for:
- Real-time streaming or WebSocket subscriptions → use ave-data-wss instead
- Executing trades or swaps → use ave-trade-chain-wallet or ave-trade-proxy-wallet instead
npx claudepluginhub avecloud/ave-cloud-skill --plugin ave-cloud-skillOther plugins' skills for the same job