Skip to main content
This page gets you set up quickly as a merchant (server) or a buyer (client). Choose your language and framework below to get started.

Servers (Merchants)

Express

Quickstart for building an x402-enabled server with Express.

Hono

Quickstart for building an x402-enabled server with Hono.

NextJS (coming soon)

NextJS server quickstart is coming soon.

Clients (Buyers)

Axios

Quickstart for building an x402 client with Axios.

Fetch

Quickstart for building an x402 client with Fetch.

Facilitator

The PayAI facilitator URL is https://facilitator.payai.network. Simply set the facilitator URL in your server configuration and you’re good to go. The PayAI facilitator supports the following endpoints:
  • /supported - see which networks and schemes are supported
  • /verify - verify that a payment is valid
  • /settle - settle the payment
  • /discovery/resources - view the bazaar, a marketplace of merchants
Read the reference for more information on the facilitator endpoints and responses.

Supported networks

The PayAI facilitator supports x402 on the following networks:
Network NameV1 Network StringV2 CAIP-2 ID
Avalancheavalancheeip155:43114
Avalanche Fujiavalanche-fujieip155:43113
Basebaseeip155:8453
Base Sepoliabase-sepoliaeip155:84532
Polygonpolygoneip155:137
Polygon Amoypolygon-amoyeip155:80002
Seiseieip155:1329
Sei Testnetsei-testneteip155:713715
SKALE Baseskale-baseeip155:1187947933
SKALE Base Sepoliaskale-base-sepoliaeip155:324705682
Solanasolanasolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Solana Devnetsolana-devnetsolana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
X Layerxlayereip155:196
X Layer Testnetxlayer-testneteip155:1952

Need help?

Join our Community

Have questions or want to connect with other developers? Join our Discord server.