@aegntic/agentmint
v1.0.1
Published
A2A payment infrastructure for AI agents
Downloads
17
Maintainers
Readme
AgentMint
One-click A2A payment infrastructure for AI agents
Quick Start
npm install @aegntic/agentmintconst { AgentPayment } = require('@aegntic/agentmint');
const payment = new AgentPayment({
wallet: '0x742d...',
acceptedTokens: ['USDC', 'ETH', 'USD', 'AUD']
});
app.use('/payments', payment.middleware());Endpoints
| Method | Endpoint | Description | |--------|----------|-------------| | POST | /payments/pay | Request payment | | POST | /payments/webhook | Stripe webhook | | GET | /payments/card | Generate payment link | | GET | /payments/revenue | Revenue stats |
Notes
USDC,USD, andAUDare supported in Stripe mode.ETHis supported in crypto-only mode and returns direct wallet payment instructions.- Stripe webhooks require the raw request body, which AgentMint handles internally on
/payments/webhook. - The
/healthroute exists in the demo server at server.js, not in the exported middleware itself.
