Linux 软件免费装
Banner图

NanoTrans Agent Paywall

开发者 nanotrans01
wiselake
更新时间 2026年4月24日 17:29
PHP版本: 8.1 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

paywall micropayment usdc ai-agent x402

下载

0.1.0

详情介绍:

NanoTrans Agent Paywall is an agent-native paywall plugin that enables AI agents to automatically discover and purchase WordPress content using the x402 payment protocol with USDC stablecoin on the Base Network (Ethereum L2). Key Features: How It Works:
  1. Publisher sets content prices using the Gutenberg paywall block
  2. AI agent requests content and receives HTTP 402 with payment requirements
  3. Agent signs USDC payment via EIP-712
  4. x402 Facilitator verifies payment on-chain
  5. Content is delivered as structured JSON
For Content Publishers: For AI Agent Developers:

安装:

Requirements: Step 1: Install and Activate Upload the nanotrans-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' );

屏幕截图:

  • Gutenberg Paywall Block - Visual price configuration
  • Payment Widget - Browser wallet connection for human users
  • Agent Discovery - /.well-known/x402 endpoint response

升级注意事项:

0.1.0 Initial release. Install, activate, and enter your wallet address in Settings > NanoTrans.

常见问题:

What is x402?

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.

Which blockchain network does this use?

NanoTrans uses the Base Network (Ethereum L2) for USDC stablecoin payments. Base offers low gas fees (~$0.01) and fast confirmation times (~2 seconds).

Is this compatible with WooCommerce?

NanoTrans operates independently of WooCommerce. It uses its own payment flow (x402 protocol) and does not conflict with WooCommerce product pricing.

How are payments secured?

  • EIP-712 typed data signatures for payment authorization
  • x402 Facilitator verifies signatures on-chain before settlement
  • Replay attack prevention via unique transaction hashes
  • Rate limiting and anomaly detection
  • All payment attempts logged for audit

What AI agents are supported?

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.

How do I test without real money?

Use the Base Sepolia testnet. Set the network to "base-sepolia" in plugin settings and use testnet USDC from a faucet.

Do I need CDP API keys or manual configuration?

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.

Does this plugin store private keys?

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.

Does this work with WordPress Multisite?

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.

Is this compatible with caching plugins?

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/.

What happens if the payment Facilitator goes down?

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.

更新日志:

0.1.0