SDK & Tools

!

Validator

The Primer Validator inspects any x402 endpoint — not just our own. Useful for testing your integration, debugging payment flows, education, and manual pre-agent checks.

primer.systems/validate →
<

Test Paywall Builder

Generate custom x402 paywall endpoints for testing agent payment flows. Configure the network, amount, and recipient to create a paywall URL that returns 402 Payment Required.

primer.systems/test-paywall →
#

AP2 Registry

Look up and examine Google AP2 Intent Mandates submitted via MultiClaw to ascertain an agent's spending permissions. New mandates may also be posted directly.

ap2.primer.systems →
[01]!Quick Start
npm install @primersystems/x402 @x402/express

v1.1.0 · npm · GitHub · Docs

[02]<For Providers

Use official @x402 middleware with Primer facilitator:

import { paymentMiddleware } from '@x402/express'
import { primerFacilitator } from '@primersystems/x402'

const routes = {
  '/api/premium': {
    price: '$0.01',
    network: 'eip155:8453', // Base
    payTo: '0xYourAddress'
  }
}

app.use(paymentMiddleware(routes, { facilitator: primerFacilitator() }))
[03]#Features
  • Primer FacilitatorPre-configured client for x402.primer.systems
  • Additional NetworksSKALE Base & Robinhood Chain
  • Prism SettlementEIP-712 payloads for any ERC-20 token
  • CLI ScaffoldingGenerate Bittensor/Chutes AI proxy projects
[01]!Quick Start
pip install primer-x402 x402

v1.1.0 · PyPI · GitHub · Docs

[02]<For Providers

Use official x402 middleware with Primer facilitator:

from x402 import payment_middleware
from primer_x402 import primer_facilitator_sync

routes = {
    '/api/premium': {
        'price': '$0.01',
        'network': 'eip155:8453', # Base
        'payTo': '0xYourAddress'
    }
}

facilitator = primer_facilitator_sync()
app.add_middleware(payment_middleware(routes, facilitator=facilitator))
[03]#Features
  • Primer FacilitatorPre-configured client for x402.primer.systems
  • Additional NetworksSKALE Base & Robinhood Chain
  • Prism SettlementEIP-712 payloads for any ERC-20 token
  • CLI ScaffoldingGenerate Bittensor/Chutes AI proxy projects