跳到正文
cccskills
免费在 GitHub 公开

a2a-shib-payments

Framework-agnostic agent-to-agent payment system with SHIB on Polygon. Provides trustless escrow, price negotiation, and reputation system. 9,416x cheaper than traditional escrow (~$0.003 gas).

中文简介正在准备中。当前显示原文说明。

集成工具Cloudflare
查看安装方法

包含的文件(45)

  • SKILL.md7.6 KB
  • a2a-agent-full.js13.5 KB
  • a2a-agent-production.js13.2 KB
  • a2a-agent-v2.js6.5 KB
  • a2a-agent.js6.9 KB
  • assets/banner.svg1.9 KB
  • assets/logo.svg922 B
  • audit-logger.js6.9 KB
  • auth.js4.5 KB
  • AWESOME-LISTS.md7.3 KB
  • check_balance_temp.js964 B
  • CONTRIBUTING.md10.3 KB
  • demo-requestor-agent.js4.0 KB
  • deploy-local.sh2.0 KB
  • DEPLOYMENT.md10.0 KB
  • discovery-client.js5.2 KB
  • ESCROW-NEGOTIATION-GUIDE.md14.6 KB
  • escrow.js8.4 KB
  • FINAL-SUMMARY.md14.3 KB
  • hackernews-post.txt846 B
  • index.js6.8 KB
  • INTEGRATION-EXAMPLES.md12.8 KB
  • LAUNCH-CHECKLIST.md6.8 KB
  • monitor-github.sh4.6 KB
  • package.json1.4 KB
  • payment-negotiation.js10.0 KB
  • PHASE4-B-SUMMARY.md12.7 KB
  • PR-AUTOMATION.md6.5 KB
  • PRODUCTION-HARDENING.md10.4 KB
  • production-wrapper.js7.6 KB
  • PROJECT-COMPLETE.md8.3 KB
  • PROMOTION-TRACKER.md7.5 KB
  • rate-limiter.js5.0 KB
  • README.md18.3 KB
  • reddit-alternatives.md3.0 KB
  • reddit-cryptocurrency-post.txt2.6 KB
  • reddit-ethereum-post.txt1.9 KB
  • reputation.js10.6 KB
  • save-to-qdrant.js12.0 KB
  • SOCIAL.md14.3 KB
  • SUCCESS.md5.7 KB
  • test-escrow-negotiation.js8.4 KB
  • test-reputation.js5.5 KB
  • test-security.js4.5 KB
  • twitter-thread.txt1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

A2A SHIB Payment System - OpenClaw Skill

Framework-agnostic agent-to-agent payment infrastructure on Polygon network.

Summary

This skill enables AI agents to:

  • 💰 Send/receive SHIB payments on Polygon (~$0.003 gas)
  • 🔒 Create trustless escrow contracts
  • 💬 Negotiate prices automatically (multi-round)
  • ⭐ Build reputation through ratings
  • 🌐 Discover other agents via A2A protocol

9,416x cheaper than traditional escrow services (Escrow.com charges $28.25 per $100, this costs $0.003).

Features

Payment System

  • Direct SHIB transfers on Polygon
  • Sub-penny gas costs (~$0.003)
  • Balance checking
  • Transaction history

Escrow System

  • Time-locked trustless payments
  • Multi-party approval required
  • Delivery proof submission
  • Automatic release when conditions met
  • Dispute resolution with arbiter
  • 6-state machine: pending → funded → locked → released/refunded/disputed

Price Negotiation

  • Service quote creation
  • Multi-round counter-offers
  • Accept/reject workflow
  • Automatic escrow integration
  • Service delivery tracking

Reputation System

  • Star ratings (0-5) with reviews
  • Dynamic trust scores (0-100)
  • Trust levels: new → bronze → silver → gold → platinum
  • Achievement badges
  • Agent verification

Security Layer

  • API key authentication (64-byte keys)
  • Rate limiting (requests + payments + volume)
  • Immutable audit logging (hash-chained)
  • Per-agent permissions & limits

Installation

# Via ClawHub
clawhub install a2a-shib-payments

# Or manual clone
cd ~/clawd/skills
git clone https://github.com/marcus20232023/a2a-shib-payments.git
cd a2a-shib-payments
npm install

Configuration

Create .env.local:

cp .env.example .env.local
nano .env.local

Required environment variables:

  • WALLET_PRIVATE_KEY - Your Polygon wallet private key
  • RPC_URL - Polygon RPC endpoint (default: https://polygon-rpc.com)
  • SHIB_CONTRACT_ADDRESS - SHIB token contract (default: 0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce)

Usage

Start the Agent

node a2a-agent-full.js

Agent runs on port 8003 by default.

OpenClaw Integration

The agent exposes A2A protocol endpoints that OpenClaw can communicate with:

Agent Card: http://localhost:8003/.well-known/agent-card.json

Example commands from OpenClaw:

// Check balance
const result = await fetch('http://localhost:8003/a2a/jsonrpc', {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'message/send',
    params: {
      message: {
        kind: 'message',
        messageId: '1',
        role: 'user',
        parts: [{kind: 'text', text: 'balance'}]
      }
    },
    id: 1
  })
});

// Send payment
// text: 'send 100 SHIB to 0x...'

// Create escrow
// text: 'escrow create 500 SHIB for data purchase payee data-agent'

// Check reputation
// text: 'reputation check data-agent'

Framework Compatibility

Works with:

  • ✅ OpenClaw - As a skill or standalone agent
  • ✅ LangChain - Via A2A tools
  • ✅ AWS Bedrock - Via agent invocation
  • ✅ AutoGen - Via A2A messaging
  • ✅ Any A2A-compatible system

See INTEGRATION-EXAMPLES.md for detailed integration guides.

Use Cases

Data Marketplace

// Research agent buys Tesla historical data
const quote = await negotiation.createQuote({
  service: 'TSLA 2020-2025 historical data',
  price: 500  // SHIB
});

// Counter-offer and accept
await negotiation.counterOffer(quote.id, 'research-agent', 400);
await negotiation.acceptCounter(quote.id, 'data-provider');
// Escrow created automatically

AI Model Training

// Create escrow for model training job
const escrow = await escrowSystem.create({
  payer: 'startup-agent',
  payee: 'ai-trainer',
  amount: 1000,
  purpose: 'Train GPT-style model',
  conditions: {requiresDelivery: true},
  timeoutMinutes: 720  // 12 hours
});

API Endpoints

A2A Protocol

  • /.well-known/agent-card.json - Agent capabilities
  • /a2a/jsonrpc - JSON-RPC messaging
  • /a2a/rest/* - REST API

Commands (via message text)

  • balance - Check SHIB balance
  • send [amount] SHIB to [address] - Send payment
  • escrow create [amount] SHIB for [purpose] payee [agent] - Create escrow
  • escrow fund [id] - Fund escrow
  • escrow release [id] - Release funds
  • quote create [service] [price] - Create price quote
  • reputation check [agentId] - Check agent reputation
  • rate [agentId] [1-5] [review] - Rate an agent

Testing

# Run all tests
npm test

# Individual test suites
npm run test:security
npm run test:escrow
npm run test:reputation

Files

Core Systems:

  • a2a-agent-full.js - Full-featured agent (port 8003)
  • index.js - Payment agent core
  • escrow.js - Escrow system
  • payment-negotiation.js - Negotiation workflow
  • reputation.js - Reputation & trust

Security:

  • auth.js - API authentication
  • rate-limiter.js - Rate limiting
  • audit-logger.js - Audit logging

Documentation:

  • README.md - Project overview
  • INTEGRATION-EXAMPLES.md - Framework integration guides
  • ESCROW-NEGOTIATION-GUIDE.md - API reference
  • PRODUCTION-HARDENING.md - Security guide
  • DEPLOYMENT.md - Deployment options

Security

Implemented:

  • ✅ API key authentication
  • ✅ Rate limiting (10 req/min, 3 payments/min, 500 SHIB/min volume)
  • ✅ Immutable audit logs (hash-chained)
  • ✅ Per-agent permissions
  • ✅ Escrow time-locks
  • ✅ Multi-party approval

Recommended for Production:

  • Multi-sig wallet
  • HTTPS (Cloudflare/Let's Encrypt)
  • Firewall rules
  • Automated backups
  • Monitoring & alerting

See PRODUCTION-HARDENING.md for complete guide.

Deployment

Quick Local

./deploy-local.sh

Production Options

  1. Systemd service (auto-start on boot)
  2. Cloudflare Tunnel (free HTTPS)
  3. Docker container
  4. VPS ($6/month)

See DEPLOYMENT.md for complete guide.

Cost Comparison

SystemFeeSettlementTrust
Escrow.com$28.255-7 daysCentralized
PayPal$3.201-3 daysCentralized
This System$0.003SecondsDecentralized

For a $100 transaction: 99.99% savings (9,416x cheaper)

Links

License

MIT License - Free for commercial and personal use

Version

v2.0.0 - Production Ready


Built with 🦪 for the agent economy

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

name: 4d-compression-core version: 1.0.2 description: "把长内容压缩成结构化向量——节省 60-80% Token,保留核心信息" metadata: { "openclaw": { "emoji": "🌀", "requires": { "bins": ["jq", "awk"] }, "triggers": ["压缩", "4d",...

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

Use cheap, TEE-verified AI models from the 0G Compute Network as OpenClaw providers. Discover available models and compare pricing vs OpenRouter, verify provider integrity via hardware attestation (Intel TDX), manage your 0G wallet and sub-accounts, and configure models in OpenClaw with one workflow. Supports DeepSeek, GLM-5, Qwen, and other models available on the 0G marketplace.

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

0xarchive

免费

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3.

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

0xwork

免费

Find and complete paid tasks on the 0xWork decentralized marketplace (Base chain, USDC escrow). Use when: the agent wants to earn money/USDC by doing work, discover available tasks, claim a bounty, submit deliverables, check earnings or wallet balance, or set up as a 0xWork worker. Task categories: Writing, Research, Social, Creative, Code, Data. NOT for: posting tasks (use the website), managing the 0xWork platform, or frontend development.

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

Patterns and practices that dramatically accelerate development velocity. Covers parallel execution, automation, feedback loops, workflow optimization, and anti-pattern avoidance. Use when starting projects, planning sprints, optimizing workflows, or onboarding developers.

中文简介正在准备中。当前显示原文说明。

modbender/skill-library-mcp172026年9月28日 更新

查看 modbender 的全部技能

报告此技能的问题