x402-elizaos-plugin
v1.0.0
Published
ElizaOS plugin for x402 Finance API — live crypto market data on Base via x402 micropayments
Maintainers
Readme
@x402/elizaos-plugin
ElizaOS plugin for x402 Finance API on Base Mainnet.
Live tool
| Action | Endpoint | Price |
|--------|----------|-------|
| GET_MARKET_DATA | /api/paid-content | $0.002 USDC |
Payments settle via x402 V2 + Coinbase CDP on Base (eip155:8453).
Install
npm install @x402/elizaos-plugin(Or link locally while developing: npm install /path/to/elizaos-plugin)
Env
X402_PAYER_PRIVATE_KEY=0xYOUR_AGENT_WALLET_PRIVATE_KEYThe agent wallet must hold a small amount of USDC on Base for micropayments.
Do not use the merchant payTo private key.
Usage in ElizaOS
import x402FinancePlugin from '@x402/elizaos-plugin'
// Add to your character / agent plugins array:
plugins: [x402FinancePlugin]Direct API (no ElizaOS)
- Docs: https://x402-paid-api.x402-finance.workers.dev/llms.txt
- MCP tools: https://x402-paid-api.x402-finance.workers.dev/mcp-tools.json
- Smithery: https://smithery.ai/servers/krbaric/x402-finance
Network
- Chain: Base Mainnet
- Asset: USDC
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 - Pay To:
0xE8bC82d53E45e61e07D84536970d695265A51CE4
