@alleyboss/micropay-solana-x402-paywall 3.0.5 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/next/index.cjs +3 -1
- package/dist/next/index.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,9 @@ import { createX402Middleware } from '@alleyboss/micropay-solana-x402-paywall/ne
|
|
|
66
66
|
|
|
67
67
|
const withMicropay = createX402Middleware({
|
|
68
68
|
walletAddress: 'YOUR_WALLET_ADDRESS',
|
|
69
|
-
network: 'devnet'
|
|
69
|
+
network: 'devnet',
|
|
70
|
+
// Optional: Custom Facilitator (e.g. for Mainnet Pro)
|
|
71
|
+
// facilitatorUrl: 'https://facilitator.pro-provider.com/v1/MY_KEY'
|
|
70
72
|
});
|
|
71
73
|
|
|
72
74
|
const handler = (req) => {
|
package/dist/next/index.cjs
CHANGED
|
@@ -8,7 +8,9 @@ var server$1 = require('@x402/svm/exact/server');
|
|
|
8
8
|
// src/next/index.ts
|
|
9
9
|
function createX402Middleware(config) {
|
|
10
10
|
const facilitatorUrl = config.facilitatorUrl || "https://x402.org/facilitator";
|
|
11
|
-
const client = new http.HTTPFacilitatorClient({
|
|
11
|
+
const client = new http.HTTPFacilitatorClient({
|
|
12
|
+
url: facilitatorUrl
|
|
13
|
+
});
|
|
12
14
|
const server$2 = new server.x402ResourceServer(client);
|
|
13
15
|
server$1.registerExactSvmScheme(server$2, {});
|
|
14
16
|
return function withMicropay(handler, routeConfig) {
|
package/dist/next/index.js
CHANGED
|
@@ -7,7 +7,9 @@ import { registerExactSvmScheme } from '@x402/svm/exact/server';
|
|
|
7
7
|
// src/next/index.ts
|
|
8
8
|
function createX402Middleware(config) {
|
|
9
9
|
const facilitatorUrl = config.facilitatorUrl || "https://x402.org/facilitator";
|
|
10
|
-
const client = new HTTPFacilitatorClient({
|
|
10
|
+
const client = new HTTPFacilitatorClient({
|
|
11
|
+
url: facilitatorUrl
|
|
12
|
+
});
|
|
11
13
|
const server = new x402ResourceServer(client);
|
|
12
14
|
registerExactSvmScheme(server, {});
|
|
13
15
|
return function withMicropay(handler, routeConfig) {
|
package/package.json
CHANGED