/install goodwallet-trading
GoodWallet Trading
Extends the goodwallet skill with blockchain trading capabilities. All transactions are MPC-signed via the same Sodot threshold ECDSA signing service.
Prerequisite: The user must first authorize via the goodwallet skill (auth + pair). Credentials are shared via ~/.config/goodwallet/config.json.
All commands are run via npx [email protected].
Important: Do not share technical details (key types, signature formats, internal paths). Run commands and report outcomes in plain language.
Setup
If the user hasn't authorized yet, run the goodwallet auth flow first:
npx [email protected] auth
# Show the URL to the user, then immediately:
npx [email protected] pair
Once paired, all goodwallet-trading commands will work automatically.
Commands
balance — Check ETH and ERC20 balances
npx [email protected] balance
npx [email protected] balance --token \x3Cerc20-address>
erc20-send — Send ERC20 tokens
npx [email protected] erc20-send --to \x3Caddress> --amount \x3Camount> --token \x3Cerc20-address>
| Flag | Short | Required | Description |
|---|---|---|---|
--to \x3Caddress> |
-t |
Yes | Recipient address |
--amount \x3Camount> |
-a |
Yes | Amount (human-readable, e.g. 10.5) |
--token \x3Caddress> |
Yes | ERC20 token contract |
approve — Approve token spending
npx [email protected] approve --token \x3Cerc20-address> --spender \x3Caddress>
npx [email protected] approve --token \x3Cerc20-address> --spender \x3Caddress> --amount 100
Without --amount, approves unlimited spending.
contract-call — Call any smart contract
The most powerful command — execute arbitrary contract calls with MPC signing.
npx [email protected] contract-call --to \x3Ccontract> --data \x3Ccalldata-hex>
npx [email protected] contract-call --to \x3Ccontract> --data \x3Ccalldata-hex> --value 0.1
| Flag | Required | Description |
|---|---|---|
--to \x3Caddress> |
Yes | Contract address |
--data \x3Chex> |
Yes | Calldata (hex with 0x prefix) |
--value \x3Cether> |
No | ETH to send with call (default: 0) |
swap — Uniswap V2 DEX swap
npx [email protected] swap --router \x3Crouter-address> --from-token ETH --to-token \x3Ctoken-address> --amount 0.1
npx [email protected] swap --router \x3Crouter-address> --from-token \x3Ctoken-a> --to-token \x3Ctoken-b> --amount 100
| Flag | Required | Description |
|---|---|---|
--router \x3Caddress> |
Yes | Uniswap V2 router address |
--from-token \x3Caddress|ETH> |
Yes | Token to sell (or "ETH") |
--to-token \x3Caddress|ETH> |
Yes | Token to buy (or "ETH") |
--amount \x3Camount> |
Yes | Amount to swap |
--slippage \x3Cpercent> |
No | Slippage tolerance (default: 1%) |
token-info — Get ERC20 token details
npx [email protected] token-info --token \x3Cerc20-address>
Returns: name, symbol, decimals, total supply, your balance.
allowance — Check approved spending
npx [email protected] allowance --token \x3Cerc20-address> --spender \x3Caddress>
Environment Variables
| Variable | Default | Description |
|---|---|---|
SIGN_URL |
sign.goodwallet.dev |
Signing service endpoint |
RPC_URL |
Alchemy Hoodi endpoint | Override RPC URL |
Network
Currently configured for Hoodi testnet (chain ID 560048). Explorer: https://hoodi.etherscan.io/
File Locations
| File | Purpose |
|---|---|
~/.config/goodwallet/config.json |
Shared credentials from goodwallet auth |
Typical Workflow
# 1. Auth (if not already done)
npx [email protected] auth
npx [email protected] pair
# 2. Check balance
npx [email protected] balance
# 3. Send ERC20 tokens
npx [email protected] erc20-send --to 0x... --amount 10 --token 0x...
# 4. Approve DEX router
npx [email protected] approve --token 0x... --spender 0x...
# 5. Swap on DEX
npx [email protected] swap --router 0x... --from-token ETH --to-token 0x... --amount 0.1
# 6. Arbitrary contract call
npx [email protected] contract-call --to 0x... --data 0xabcdef... --value 0.05
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install goodwallet-trading - 安装完成后,直接呼叫该 Skill 的名称或使用
/goodwallet-trading触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Goodwallet Trading 是什么?
Blockchain trading tools extending GoodWallet MPC agentic wallets. Adds ERC20 transfers, token approvals, DEX swaps (Uniswap V2), arbitrary contract calls, b... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 226 次。
如何安装 Goodwallet Trading?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install goodwallet-trading」即可一键安装,无需额外配置。
Goodwallet Trading 是免费的吗?
是的,Goodwallet Trading 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Goodwallet Trading 支持哪些平台?
Goodwallet Trading 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Goodwallet Trading?
由 Yoni(@yoniassia)开发并维护,当前版本 v0.2.1。