Commit 9beea02
Rotwang9000
x402: switch default facilitator to openx402.ai + initialise eagerly
Two boot-time gotchas surfaced once we lit the paywall against a
real Base-mainnet recipient:
1. The public x402.org/facilitator only services testnets — its
/supported manifest does not list eip155:8453. On mainnet boot
the middleware throws RouteConfigurationError:missing_facilitator.
Switch the default in config.js to OpenX402's permissionless
mainnet facilitator (no API key, supports Base USDC with the
canonical EIP-712 metadata).
2. syncFacilitatorOnStart was wired to false "for boot speed". Without
the boot-time /supported fetch, the resource server has no
registered schemes and "Facilitator does not support exact on
eip155:8453" is thrown at request time — much harder to spot.
Pass true explicitly and document why above the call.
108/108 tests still green.1 parent 21939b2 commit 9beea02
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
152 | | - | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
0 commit comments