openclaw-xrpl-plugin
v1.0.0
Published
XRPL Micropayment Plugin for OpenClaw AI Agent - Monetize the AI Agent Economy
Maintainers
Readme
OpenClaw XRPL Micropayment Plugin
Monetize the AI Agent Economy Every agent transaction → 3% to your wallet
Your Fee Wallet
ra7Zj3GMAvuY7QEAJr1YADJ6Ss43Rxyo64Quick Start
1. Install
npm install xrpl2. Copy Plugin
Copy index.ts into your OpenClaw installation.
3. Use
import { OpenClawPayments } from './openclaw-xrpl-plugin';
// Initialize
const payments = new OpenClawPayments();
await payments.init();
// Pay for a skill (3% goes to your wallet)
await payments.payForSkill('premium-search', 0.001);
// Or wrap any function to require payment
const paidSearch = payments.paidSkill(
async (query) => { /* search logic */ },
{ name: 'search', price: 0.001 }
);
const results = await paidSearch('XRPL micropayments');Revenue Model
| Scenario | Your Cut | |----------|----------| | 1 skill @ $0.01 | $0.0003 | | 1000 skills/day | $0.30/day | | 100k agents × 50 skills | $750/day | | Scale to 1M agents | $7,500/day |
Safety
CONFIG.USE_TESTNET = trueby default- Rate limited to 100 tx/minute
- Max 100 XRP per transaction
- Set
USE_TESTNET = falseONLY after full security audit
Files
| File | Purpose |
|------|---------|
| index.ts | Main plugin code |
| demo.js | Run node demo.js to see it work |
| package.json | Dependencies |
Next Steps
- Run
node demo.jsto test - Integrate into OpenClaw fork
- Submit PR to OpenClaw
- Post demo on Twitter/X
Built for speed. Safety is imperative.
