Skip to main content

Prerequisites

  • Python 3.10+
  • A wallet with USDC on Base (+ small ETH for gas)
  • For testnet: use base-sepolia with test USDC

Install the SDK

Configure your wallet

The SDK loads wallet configuration from environment variables or ~/.xenarch/wallet.json.

Pay for gated content

Alternative: use the MCP server

If you’re using Claude Desktop or Claude Code, add Xenarch as an MCP server — no code required:
Then ask Claude: “Check if example.com has a paywall and pay for access.” See MCP installation for full setup.

Alternative: use LangChain or CrewAI

See the LangChain integration guide.

Testnet

For testing without real funds, use Base Sepolia:
The testnet uses a mock USDC contract (0xc5aDdd66Da733101A5468857Aa3C6689Af9d1DDc) where anyone can mint tokens.