HTTP client for communicating with x402 facilitator services
const client = new FacilitatorClient({ baseUrl: 'https://facilitator.example.com', apiKey: 'your-api-key'});// Check supported payment kindsconst supported = await client.supported();// Verify a paymentconst verifyResult = await client.verify(payload, requirements);// Settle if validif (verifyResult.isValid) { const settleResult = await client.settle(payload, requirements);} Copy
const client = new FacilitatorClient({ baseUrl: 'https://facilitator.example.com', apiKey: 'your-api-key'});// Check supported payment kindsconst supported = await client.supported();// Verify a paymentconst verifyResult = await client.verify(payload, requirements);// Settle if validif (verifyResult.isValid) { const settleResult = await client.settle(payload, requirements);}
Settle a verified payment
Get supported payment kinds
Verify a payment payload against requirements
HTTP client for communicating with x402 facilitator services
Example