| 开发者 |
nanotrans01
wiselake |
|---|---|
| 更新时间 | 2026年4月24日 17:29 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/.well-known/x402 endpoint for automatic content discoverynanotrans-x402 folder to /wp-content/plugins/, or install directly from the WordPress plugin directory. Activate the plugin through the 'Plugins' menu.
On activation, the plugin automatically connects to the Facilitator Proxy service. You will see a success notice: "Successfully connected to Facilitator Proxy."
Step 2: Configure Your Wallet
Go to Settings > NanoTrans and enter your Base Network wallet address (the address that will receive USDC payments). Configure default content prices and other options as needed.
Step 3: Create Paywalled Content
Add the NanoTrans Paywall block to any post or page using the Gutenberg editor. Set the price in USDC and publish.
That's it! No wp-config.php editing required. The plugin handles Facilitator authentication automatically.
Testing:
To test with the Base Sepolia testnet, change the network to "base-sepolia" in Settings > NanoTrans and use testnet USDC from a faucet.
Advanced Configuration (optional):
For custom Facilitator Proxy deployments, you can override the default by adding constants to wp-config.php:
define( 'NANOTRANS_FACILITATOR_URL', 'https://your-worker.workers.dev' );
define( 'NANOTRANS_PROXY_AUTH_SECRET', 'your-manual-bearer-token' );x402 is an open protocol that enables machine-to-machine payments over HTTP. When content requires payment, the server responds with HTTP 402 (Payment Required) along with payment details. The client automatically signs and submits payment, then receives the content.
NanoTrans uses the Base Network (Ethereum L2) for USDC stablecoin payments. Base offers low gas fees (~$0.01) and fast confirmation times (~2 seconds).
NanoTrans operates independently of WooCommerce. It uses its own payment flow (x402 protocol) and does not conflict with WooCommerce product pricing.
Any AI agent that supports the x402 protocol or MCP (Model Context Protocol). This includes Claude (via MCP server), GPT-based agents, and custom agents using the x402 SDK.
Use the Base Sepolia testnet. Set the network to "base-sepolia" in plugin settings and use testnet USDC from a faucet.
No. The plugin automatically registers with the Facilitator Proxy on activation and receives an API key. No wp-config.php editing or CDP keys required. The Cloudflare Worker proxy handles all CDP JWT signing on your behalf.
No. The plugin does not require or store any private keys. Payment verification is handled by the Facilitator proxy (Cloudflare Worker). Only your public wallet address is needed.
No. NanoTrans Agent Paywall currently supports single-site WordPress installations only. On multisite, settings and transaction records would be shared across all sites, which is not suitable for separate content publishers. Multisite support is planned for a future release.
Yes. NanoTrans sends Cache-Control: no-store and X-NanoTrans: payment-gateway headers on all payment-required (HTTP 402) responses, so caching plugins like WP Super Cache and W3 Total Cache should automatically exclude them. If you experience issues, add a cache exclusion rule for URLs containing /nanotrans/v1/.
NanoTrans includes a circuit breaker that detects Facilitator outages. After 3 consecutive failures, payments are temporarily paused for 5 minutes to prevent cascading timeouts. An admin notice will appear on the NanoTrans dashboard. The system automatically retries when the cooldown expires.