HTTP 402, risorto.
Il protocollo di pagamento per macchine che operano a velocità macchina. BAPARA estende x402 con budget agentici, limiti di spesa e ricevute auditabili. Compatibile con Google AP2 e la spec del facilitator Coinbase.
Il layer di pagamento per il commercio agentico.
I server rispondono con 402 Payment Required e i termini. Gli agenti firmano un'autorizzazione stablecoin off-chain. Il facilitator regola in ~200ms. Nessuna registrazione, nessuna API key, nessuna dashboard.
L'autonomia finisce dove inizia il prezzo.
Gli agenti IA sanno leggere, ragionare, agire. Ma non possono registrarsi, aspettare 3 giorni per delle API key o archiviare ricevute. bankai lo risolve con un layer di pagamento HTTP-nativo a velocità macchina.
Due righe. Qualsiasi framework.
import { paymentRequired, verifyPayment } from '@xo/bapara-sdk/server';
app.get('/inference', async (req, res) => {
const pr = paymentRequired({
amount: '0.002',
recipient: process.env.WALLET!,
facilitator: 'https://facilitator.bankai.cash',
});
const header = req.headers['x-payment'];
if (!header) return res.status(402).json(pr);
const check = await verifyPayment(header, {
facilitatorUrl: pr.facilitator,
expect: pr,
});
if (!check.ok) return res.status(402).json(pr);
res.setHeader('X-Payment-Receipt', encode(check.receipt));
res.json({ completion: await runModel(req.body) });
});import { BaparaClient } from '@xo/bapara-sdk/client';
const client = new BaparaClient(wallet);
const res = await client.fetch('https://api.bankai.cash/inference', {
method: 'POST',
wallet,
maxAmountUsdc: 0.10,
body: JSON.stringify({ prompt: 'design a payment protocol' }),
onReceipt: (r) => console.log('settled', r.txHash),
});Dai un budget al tuo agente. Non la tua seed phrase.
Deploy di un facilitator, wrap della route, consegna al tuo agente un wallet nuovo. Spedisci commercio agentico in un pomeriggio.
