Feature
Be found by the agents that can pay.
A priced route nothing can discover earns nothing. Every Wayleave install with pricedPaths serves a /.well-known/x402 manifest derived from your own configuration.
Details that decide whether an index reads you
- The path is /.well-known/x402 (not .json).
- asset is the token contract address, not a symbol.
- maxTimeoutSeconds is included.
- No priced routes, or manifest: false, returns 404 — an empty manifest would be a false claim.
Status of the spec
The merged x402 specification has no well-known discovery document; /.well-known/x402 is a proposed extension that tooling in the wild does fetch.
Advertise priced routes
new Wayleave({
pricedPaths: { '/api/premium': 0.05 },
payment: { payTo: '0xYourAddress', network: 'base' },
publicOrigin: 'https://api.example.com',
});
// curl https://api.example.com/.well-known/x402Questions
Is x402 discovery on by default?
It is served automatically when you configure priced paths; set manifest: false to turn it off.