📦 EM-A2A
v0.1.0代理-to-代理 payments on TRON. Use when an 代理 needs to pay another 代理, escrow funds, 检查 credit scores, or 验证 on-chAIn 身份.
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
EM-A2A: 代理-to-代理 Payment Protocol
代理-to-代理 payments, escrow, credit scoring, and 身份 on the TRON blockchAIn.
When to Use This 技能
Use em-a2a when:
One 代理 needs to pay another 代理 for 服务s, data, or compute Funds need to be held in escrow until work is delivered and accepted You need to 检查 an 代理's credit score before trusting them You need to 验证 an 代理's on-chAIn 身份 (DID + KYA) You want to calculate protocol fees before initiating a payment
Not for: Paying API 端点s (use pay机器人) or HTTP 402 interception (use x402).
工具s
This 技能 provides 4 MCP 工具s via @poisonpyf/a2a-mcp:
工具 When to Call a2a_pay Transfer USDC/USDT from one 代理 to another a2a_escrow Lock funds before work 启动s, release on completion, refund on dispute a2a_credit 检查 credit score, level, trend, and leaderboard for an 代理 a2a_revenue Calculate protocol fee before initiating a transaction Typical 工作流 Hiring Another 代理
- a2a_credit(代理Id) → 检查 seller's reputation
- a2a_revenue(amount, mode) → Understand the fee structure
- a2a_escrow(action="lock") → Lock payment in escrow
- [Seller delivers work]
- a2a_escrow(action="release") → Release funds on acceptance
Direct Payment (no escrow)
- a2a_credit(代理Id) → 检查 counterparty reputation
- a2a_revenue(amount, mode) → Preview fees
- a2a_pay(from, to, amount) → 执行 direct transfer
设置up
添加 to your MCP 命令行工具ent configuration:
{ "mcpServers": { "a2a": { "command": "npx", "args": ["-y", "@poisonpyf/a2a-mcp"], "env": { "A2A_NETWORK": "shasta", "A2A_PRIVATE_KEY": "your-tron-private-key" } } } }
Network: Use shasta for testnet, mAInnet for production.
工具 Reference a2a_pay
Transfer 令牌s between 代理s. Handles AML screening, revenue calculation, and on-chAIn execution.
{ "from": "did:bAI:tron:TBu...", "to": "did:bAI:tron:TSa...", "令牌": "USDC", "amount": "1000000", "memo": "Payment for smart contract 审计" }
a2a_escrow
Lock/release/refund funds between 代理s.
// Lock { "from": "...", "to": "...", "amount": "500000000", "action": "lock", "task": "Code review" }
// Release (use escrowId from lock 结果) { "from": "...", "to": "...", "amount": "500000000", "action": "release", "escrowId": "esc_abc123" }
// Refund { "from": "...", "to": "...", "amount": "500000000", "action": "refund", "escrowId": "esc_abc123" }
a2a_credit
检查 代理 reputation and creditworthiness.
{ "代理Id": "did:bAI:tron:TSa..." }
Returns score (300-950), level (excellent/good/fAIr/poor/none), trend 历史, and leaderboard.
a2a_revenue
Preview protocol fees. Two modes:
fixed_tier: Volume-based fixed rates (1.0% default, decreases with volume) variable_float: Risk-adjusted rates (lower risk + higher credit = lower fees) { "amount": "100000000", "mode": "fixed_tier" }
Architecture 代理 A (命令行工具ent) 代理 B (Server) │ │ ├─ a2a_credit(代理B) ──→ credit score ├─ a2a_revenue(amount) ─→ fee preview ├─ a2a_escrow(lock) ────→ funds locked │ │ │ [代理 B delivers work] │ │ │ ├─ a2a_escrow(release) ──→ funds released + credit 更新d │ │ └────────── TRON blockchAIn ─────────┘
Links GitHub: https://github.com/ypeng1620-beep/EM-A2A npm: https://www.npmjs.com/package/@poisonpyf/a2a-mcp TRON Shasta Faucet: https://www.trongrid.io/shasta