You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add x402 facilitator token support and update documentation
- Introduced `x402FacilitatorToken` in various configurations and structures.
- Updated README and CLI reference to include new token requirements.
- Enhanced error handling for missing authorization tokens in Casper payments.
- Bumped version to v2.3.3 for the release.
utils.RepeatedStringFlag(fs, &flags.x402Endpoints, "x402-endpoint", "x402 chain RPC or hosted facilitator endpoint; repeat for Sui RPC fallback, while Casper uses the first facilitator endpoint")
utils.RepeatedStringFlag(fs, &flags.httpRoutes, "http-route", "HTTP route mapping in PATH=UPSTREAM [METHOD[,METHOD...]:PAYMENT_AMOUNT] form; repeat to aggregate multiple local HTTP services behind one public URL")
102
104
utils.StringFlag(fs, &flags.serve, "serve", "", "Serve a local static site: pass a directory (served with index.html) or an HTML file (its folder is served with that file as the SPA/CSR entry). Unknown paths fall back to the entry file")
103
105
utils.BoolFlagEnv(fs, &flags.udp, "udp", false, "Enable public UDP relay in addition to the default TCP relay", "UDP_ENABLED")
|`--x402-endpoint`| string || Optional Sui RPC or Casper facilitator endpoint; repeatable |
107
+
|`--x402-facilitator-token`| string |`CSPR_CLOUD_API_KEY`| Casper facilitator authorization token; prefer the environment variable so the secret is not exposed in the process arguments |
0 commit comments