Integrate x402 payment routing into your stack. Simple SDKs, powerful APIs.
Request → Route → Settle. Simple flow, powerful capabilities.
Request sealed → Routed to pool → Settled with proof
Get started with code samples in your preferred language
import { BlackboxClient } from '@blackbox/payments';
const client = new BlackboxClient({
apiKey: process.env.BLACKBOX_API_KEY,
});
// Create a request
const request = await client.createRequest({
amount: 1000,
currency: 'USD',
destination: 'pool_abc123',
metadata: {
orderId: 'order_123',
},
});
// Handle webhooks
app.post('/webhooks/blackbox', async (req, res) => {
const isValid = client.verifyWebhook(req.body, req.headers['x-blackbox-signature']);
if (!isValid) return res.status(401).send('Invalid signature');
const event = req.body;
// Handle event...
res.status(200).send('OK');
});Connect Blackbox with your favorite frameworks and tools