Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

walletwallet 控制

Agent Skill

wallet 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

564

周安装

24

GitHub Stars

2

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wallet(wallet 控制)
来源仓库:https://github.com/synctxai/synctx
仓库路径:skills/wallet
安装命令:
npx skills add https://github.com/synctxai/synctx --skill wallet
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/synctxai/synctx --skill wallet

简介

wallet 控制用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • wallet 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

0. Critical Constraints

  1. NEVER write raw Deno/ethers code. Do not import ethers or viem directly; do not manually construct ABI encoding. ALL contract interactions MUST go through the run.ts CLI commands described below.
  2. NEVER fabricate data. Addresses, amounts, and function signatures must come from user input or on-chain queries. If a parameter is unknown, use list-functions to discover it or ask the user.
  3. Write operations require user confirmation — preview with --dry-run, present the details, then execute only after the user approves. Exception: when the SyncTx workflow's Special Authorizations override this (confirmation is skipped).

1. On Load

When this skill is first loaded, determine WALLET_DIR — the absolute path to the directory containing this SKILL.md — and immediately run check-wallet before doing anything else. All subsequent commands use $WALLET_DIR so the caller never needs to cd; the current working directory must remain unchanged.

# WALLET_DIR = absolute path to this skill's directory (set once, reuse everywhere)
WALLET_DIR="/absolute/path/to/this/skill"

# Check deno availability; fall back to ~/.deno/bin/deno if PATH is missing
if ! command -v deno &>/dev/null; then
  if [ -x "$HOME/.deno/bin/deno" ]; then
    export PATH="$HOME/.deno/bin:$PATH"
  else
    echo '{"error":"deno not found. Install: curl -fsSL https://deno.land/install.sh | sh"}' >&2
    exit 4
  fi
fi

deno run -P "$WALLET_DIR/scripts/run.ts" check-wallet
Deno path fallback: if a later command fails with command not found: deno, retry once using the explicit path $HOME/.deno/bin/deno run -P "$WALLET_DIR/scripts/run.ts".... Once that works, keep using $HOME/.deno/bin/deno for the rest of the session — do not prepend export PATH=... to every command, since each bash call is a fresh subshell and export does not persist. Important: never cd into $WALLET_DIR. All commands use absolute paths via $WALLET_DIR so the working directory is not affected.

Based on the result:

  • "status": "ok" → Wallet is ready; proceed with the user's request.
  • "status": "no_env", "no_key", or "invalid_key" → Automatically run generate-wallet to create a new wallet, then tell the user:

- The new wallet address - Where the private key is stored (.env file next to this SKILL.md) - Run balance to show ETH + USDC balances across all chains - If balances are insufficient, suggest transferring ETH (for gas) and USDC (for trading) to the wallet address

Warning: The private key is stored in a local .env file and is not production-grade secure. Only deposit minimal funds for testing.

2. Environment Variables

VariableRequiredDescription
PRIVATE_KEYYesEOA private key (hex with 0x prefix)
ETHERSCAN_API_KEYNoFor ABI fetching from Etherscan
ABI_PROXY_URLNoABI caching proxy URL
CHAIN_RPC_<ID>NoCustom RPC URL per chain (e.g. CHAIN_RPC_8453)

If PRIVATE_KEY is missing, automatically run generate-wallet and inform the user. Read-only operations (read, list-functions) do not require it. Read operations execute directly via RPC; write operations send transactions directly and the user pays gas.

3. Command Reference

Setup

CommandDescription
check-walletCheck wallet status (ok / no_env / no_key / invalid_key)
generate-walletGenerate new private key, write to .env
addressShow wallet address

Balance

deno run -P "$WALLET_DIR/scripts/run.ts" balance                                   # All 4 chains: ETH + USDC
deno run -P "$WALLET_DIR/scripts/run.ts" balance --chain 8453                      # Single chain: ETH + USDC
deno run -P "$WALLET_DIR/scripts/run.ts" balance --token 0xTOKEN --chain 8453      # Specific ERC20 on specific chain

Contract Read

Function signature format: name(inputTypes)->(outputTypes).

deno run -P "$WALLET_DIR/scripts/run.ts" read CONTRACT "balanceOf(address)->(uint256)" --args '["0xOwner"]' --chain 8453
deno run -P "$WALLET_DIR/scripts/run.ts" read CONTRACT "name()->(string)"

Arguments are passed as a JSON array via --args. Omit --args when there are no parameters. Use --from 0xAddress when the view function depends on msg.sender.

Contract Write (send)

All writes go through the send command. When a call requires token approval, use --approve TOKEN:AMOUNT — the approve and business call are executed as two separate transactions.

# Basic write
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "fn(uint256)" --args '["42"]'

# With token approval (two txs: approve then call)
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "createDeal(address,uint96)" \
  --args '["0x...", "1000000"]' --approve 0xUSDC:1000000

# Preview without submitting
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "fn()" --dry-run

# With ETH value (rare)
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "fn()" --value 1000000000000000000

Signing

deno run -P "$WALLET_DIR/scripts/run.ts" sign "hello world"                                    # EIP-191
deno run -P "$WALLET_DIR/scripts/run.ts" sign-typed '{"domain":{...},"types":{...},...}'       # EIP-712

ABI Discovery & Decoding

CommandDescription
list-functions CONTRACT --chain 8453List read/write functions
decode-logs TX_HASH CONTRACT --chain 8453Decode event logs
decode-revert HEX_DATA --contract 0x... --chain 8453Decode revert reason

Utilities

deno run -P "$WALLET_DIR/scripts/run.ts" to-raw 1.5 --decimals 6          # → 1500000
deno run -P "$WALLET_DIR/scripts/run.ts" fmt 1500000 --decimals 6 --symbol USDC  # → "1.5 USDC"

4. Workflow: Unknown Contract Interaction

Before reading or writing any contract you have not seen in this session — including calling instruction() — you MUST discover its ABI first:

  1. Discover: run list-functions CONTRACT --chain 8453. The exact return type and parameter encoding must come from this list, not from guesses (e.g. instruction()->(string) vs instruction() returns (string)).
  2. Find the target function signature from the output.
  3. Call: read addr "sig" --args [...] for reads, send addr "sig" --args [...] for writes.
  4. After a write: check the tx response for needed data (returned IDs, status, etc.). Only use decode-logs if you need event data not already in the tx response.
  5. On failure: use decode-revert with the revert hex data to get the human-readable reason before doing anything else — never re-attempt a send with tweaked args until you understand the revert.

Fallback: ABI Not Found (Proxy Contracts)

If list-functions returns {"error":"ABI not found..."}, the contract is likely an unverified proxy. Resolve the implementation and retry:

# 1. Read the proxy's implementation pointer
deno run -P "$WALLET_DIR/scripts/run.ts" read PROXY "IMPLEMENTATION()->(address)" --chain 8453
# Other common names: implementation(), getImplementation(), masterCopy()

# 2. Discover functions on the implementation
deno run -P "$WALLET_DIR/scripts/run.ts" list-functions IMPL_ADDR --chain 8453

# 3. Read/send on the ORIGINAL PROXY address using the impl's signatures

The call target remains the proxy address, not the implementation.

5. Workflow: Write Operations

Write operations are irreversible on-chain transactions. Follow this sequence:

  1. Preview: run send with --dry-run to estimate gas and preview details.
  2. Confirm: present to the user the target contract, function, args, and estimated gas cost.
  3. Execute: run send without --dry-run after user confirmation.
  4. Verify: check the tx response for needed data. Use decode-logs only if additional event data is required.
  5. On failure: use decode-revert with the revert hex to get the reason.

Exception: when the SyncTx workflow's Special Authorizations apply, steps 2–3 (user confirmation) are skipped.

6. EIP-712 Signatures & Deadline Handling

An EIP-712 signature binds to every field of the signed struct. If any bound field (deadline, amount, nonce, etc.) drifts between signing and the contract call, ecrecover recovers a different address and the transaction reverts — often with an opaque InvalidSignature error. To change any bound field after signing, you must re-sign; signatures cannot be patched.

Trap: calling $(date +%s) twice yields two different timestamps. Lock signature-bound values into a shell variable once and reuse it for both request-sign and send:

DEADLINE=$(($(date +%s) + 3600))
SIG=$(synctx request-sign --deadline $DEADLINE ...)
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "fn(...)" --args '[..., "'$DEADLINE'", ..., "'$SIG'"]'

Verifier-signature workflow: when a contract function takes (bytes signature, uint deadline) or similar (e.g. fulfillWithVerifierSig), obtain the signature via synctx request-sign --deadline $DEADLINE --verifier 0x... first, then pass the same $DEADLINE to send. The verifier address and counterparty are typically given by the user or read from requiredSpecs().

7. ERC20 Allowance Check

Before calling any contract method that moves tokens (e.g. createDeal), always check the current allowance first. If the allowance is less than the required amount, approve before sending. Never send a token-consuming call without verifying allowance, and confirm the approve transaction is mined before sending the business call.

# 1. Check current allowance
deno run -P "$WALLET_DIR/scripts/run.ts" read TOKEN "allowance(address,address)->(uint256)" \
  --args '["0xOwnerAddr","0xSpenderContract"]' --chain 8453

# 2. Approve then call (two separate transactions)
deno run -P "$WALLET_DIR/scripts/run.ts" send CONTRACT "createDeal(...)" --args '[...]' \
  --approve 0xUSDC:AMOUNT

8. Revert Handling

When a transaction fails, always decode the revert reason first — before any further troubleshooting or retry. If send returns a revert with a custom 4-byte selector (e.g. 0xa86b6512), immediately call decode-revert <hex>. Never re-attempt a send until you understand the revert.

Common revert recovery patterns:

  • InvalidVerifierSignature / InvalidSignature / MetaTxInvalidSignature: the verifier signature is stale or bound to a different deadline. Re-request a fresh signature via synctx request-sign --deadline $DEADLINE --verifier 0x... (locking the new deadline per §6), then retry send with the new signature and the same deadline. Do not re-read instruction() — the contract logic is fine; only the signature needs refreshing.
  • InvalidParams: the arguments do not match the contract's expected layout. Re-read instruction() to confirm parameter encoding.

9. Output Format & Exit Codes

All commands output JSON to stdout. Errors output {"error": "message"} to stderr.

Exit CodeMeaning
0Success
1Runtime error
2Bad arguments
3Network error
4Wallet not configured

10. Rules

  1. Parse $ARGUMENTS and map to the corresponding command.
  2. If PRIVATE_KEY is missing, automatically run generate-wallet and inform the user. Read-only operations (read, list-functions) do not need it.
  3. Read operations execute directly via RPC. Write operations send transactions directly — the user pays gas.
  4. All parameters must be real values — never fabricate addresses, amounts, or signatures.
  5. If required parameters are missing, ask the user.
  6. On error, use decode-revert with the revert hex to get the human-readable reason before troubleshooting.
  7. Respond in the user's language.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.65%
按下载量换算73

Claude

28.7%
按下载量换算57

Cursor

21.65%
按下载量换算43

Gemini CLI

10.11%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills