# x402 Web3 & B2B Intelligence MCP Server (`x402-web3-mcp-server`) Production **Model Context Protocol (MCP)** server and **HTTP 402 (`x402`) API Gateway** settling micro-payments natively in **USDC on Base Mainnet (`eip155:8453`)** without API keys, subscriptions, or KYC intermediaries. - **Live Production Gateway:** `https://imnovaonline.com/x402-api/` - **Live Remote MCP JSON-RPC Endpoint:** `https://imnovaonline.com/x402-api/mcp` - **Settlement Network:** Base Mainnet (`Chain ID: 8453` / `eip155:8453`) - **USDC Token Contract:** `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` - **Recipient Wallet (`payTo`):** `0x91990F7b06BBEcA0ced13FF577Fca431920A0756` --- ## Monetized Tools & Endpoints | Tool Name / Route | Price (Base USDC) | Atomic Units | Description | | :--- | :--- | :--- | :--- | | `smart_contract_audit` (`/x402-api/v1/smart-contract-audit`) | `$0.05 USDC` | `50000` | Audits Solidity, Rust/Soroban source code or live Base/EVM contract bytecode for reentrancy, arbitrary `delegatecall`, `selfdestruct`, missing `require_auth()` in Soroban, and proxy drain vectors. | | `b2b_domain_enrich` (`/x402-api/v1/b2b-domain-enrich`) | `$0.02 USDC` | `20000` | Real-time DNS/MX/TXT/SPF inspection, corporate email suite classification, HTTP/TLS stack profiling, and role contact discovery on any domain. | | `web3_bounties_feed` (`/x402-api/v1/web3-bounties-feed`) | `$0.01 USDC` | `10000` | Curated live 0% KYC Web3 bug bounties across Stellar/Soroban, Base, Ethereum, and Solana with target repositories and high-priority vulnerability vectors. | --- ## How the `x402` Payment Flow Works 1. **Initial Call (Unpaid):** Call any endpoint (e.g., `GET https://imnovaonline.com/x402-api/v1/smart-contract-audit`). 2. **`HTTP 402 Payment Required`:** The gateway returns `402` along with the standard `PAYMENT-REQUIRED` header (Base64-encoded JSON) specifying the exact USDC amount and recipient address `0x91990F7b06BBEcA0ced13FF577Fca431920A0756`. 3. **On-Chain Settlement:** Your agent wallet transfers the required USDC on Base Mainnet (`8453`) to `0x91990F7b06BBEcA0ced13FF577Fca431920A0756`. 4. **Retry with Proof:** Retry the request passing the Base transaction hash (`0x...`) in the `PAYMENT-SIGNATURE` or `X-PAYMENT` header (or `txHash` argument in MCP `tools/call`). 5. **Cryptographic Verification & Response:** The gateway queries the Base Mainnet RPC (`https://mainnet.base.org`), verifies the ERC-20 `Transfer` event log, records the `txHash` in its anti-replay ledger, and returns `HTTP 200 OK` with the `PAYMENT-RESPONSE` receipt header. --- ## Quick Usage Examples ### 1. Inspect `HTTP 402` Payment Requirements ```bash curl -i https://imnovaonline.com/x402-api/v1/smart-contract-audit ``` ### 2. Unlock Endpoint with On-Chain Base USDC Transaction Hash ```bash curl -X POST https://imnovaonline.com/x402-api/v1/smart-contract-audit \ -H "Content-Type: application/json" \ -H "PAYMENT-SIGNATURE: 0xYOUR_BASE_MAINNET_USDC_TX_HASH" \ -d '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}' ``` ### 3. Query Remote MCP Server (`tools/list`) ```bash curl -X POST https://imnovaonline.com/x402-api/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' ``` ### 4. Local MCP Configuration (`claude_desktop_config.json` / Cursor) ```json { "mcpServers": { "x402-web3-mcp": { "command": "npx", "args": ["-y", "github:emk4652/x402-web3-mcp-server"] } } } ``` --- ## License MIT