token-allowance
Manage ERC20 token approvals and allowances.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-12
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- token-allowance
- tags
- [ "web3", "erc20", "defi", "security", "allowance" ]
- author
- SpoonOS Contributor
- version
- 1.0.0
- description
- Manage ERC20 token approvals and allowances.
02 资源文件 4
- 参考文档README.md1.7 KB
- 脚本scripts/allowance.py8.0 KB
- 参考文档SOURCE.md372 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Token Allowance Manager
A security-focused skill to manage ERC20 token approvals. It allows agents to check current allowances, approve spenders (like DEX routers), and revoke permissions to secure funds.
Quick Start
# Check if Uniswap Router has access to my USDC
allowance = await agent.run_tool(
"manage_allowance",
action="check",
token_address="0xA0b8...",
spender_address="0xE592..."
)
# Approve 100 USDC
await agent.run_tool(
"manage_allowance",
action="approve",
token_address="0xA0b8...",
spender_address="0xE592...",
amount=100.0
)
Scripts
| Script | Purpose |
|---|---|
| allowance.py | Checks and manages ERC20 allowances |
Environment Variables
| Variable | Required | Description |
|---|---|---|
WEB3_RPC_URL |
Yes | RPC URL for the blockchain |
PRIVATE_KEY |
Yes | Required for 'approve' and 'revoke' actions |
Best Practices
- Always check allowance before approving (avoid unnecessary txs).
- Approve exact amounts rather than infinite (security best practice).
- Revoke allowances for unused DApps to prevent hacks.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.