{
  "version": 1,
  "x402Version": 1,
  "service": "x402-web3-fin-gateway",
  "description": "Direct 0%-fee Base Mainnet USDC x402 API & MCP Gateway: cryptographic multichain address validation, EVM calldata & EIP-712 security auditing, CJK CSV mojibake repair, multi-page table extraction, and financial statement-invoice reconciliation.",
  "network": "base",
  "caip2Network": "eip155:8453",
  "chainId": 8453,
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "assetSymbol": "USDC",
  "assetDecimals": 6,
  "eip712Domain": {
    "name": "USD Coin",
    "version": "2"
  },
  "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
  "middlemanFeeBps": 0,
  "facilitators": [
    "https://facilitator.payai.network",
    "https://x402.org/facilitator"
  ],
  "mcpEndpoint": "https://x402-web3-fin-gateway.vercel.app/mcp",
  "catalogEndpoint": "https://x402-web3-fin-gateway.vercel.app/api/catalog",
  "openApiEndpoint": "https://x402-web3-fin-gateway.vercel.app/openapi.json",
  "resources": [
    "https://x402-web3-fin-gateway.vercel.app/api/v1/validate-address",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/audit-calldata",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/audit-eip712",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/repair-cjk-csv",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/extract-tables",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/reconcile-statements",
    "https://x402-web3-fin-gateway.vercel.app/api/v1/scan-token-risk"
  ],
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "10000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/validate-address",
      "description": "Cryptographically validates and normalizes wallet/contract addresses across 8 ecosystems: EVM (Keccak-256 EIP-55 checksum + typo/burn detection), Tron (T... SHA-256d Base58Check + 0x41/EVM conversion), Bitcoin (BIP-173 Bech32 bc1q, BIP-350 Bech32m bc1p Taproot, Base58Check), Solana (Ed25519 curve vs off-curve PDA detector), TON (EQ/UQ CRC16-XMODEM + bounceable trap alert), XRPL (classic r... + XLS-5d X-address tag decoder), Cosmos Bech32, and Stacks c32check.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "address": {
              "type": "string",
              "required": true,
              "description": "Wallet or contract address string to validate and normalize"
            },
            "chain": {
              "type": "string",
              "required": false,
              "description": "Optional chain constraint: auto, evm, tron, bitcoin, solana, ton, xrpl, cosmos, or stacks"
            },
            "expectedNetwork": {
              "type": "string",
              "required": false,
              "description": "Expected network environment: any, mainnet, or testnet"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object",
              "properties": {
                "valid": {
                  "type": "boolean"
                },
                "safeToTransact": {
                  "type": "boolean"
                },
                "riskLevel": {
                  "type": "string"
                },
                "chain": {
                  "type": "string"
                },
                "network": {
                  "type": "string"
                },
                "canonicalAddress": {
                  "type": "string"
                }
              }
            },
            "analysis": {
              "type": "object"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "10000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/audit-calldata",
      "description": "Deterministically decodes raw hex EVM transaction payloads (`to`, `value`, `data`, `chainId`) across ERC-20 (`transfer`, `approve`, `transferFrom`, `increaseAllowance`), ERC-721/1155 (`setApprovalForAll`, `safeTransferFrom`), Permit2, Uniswap V2/V3/UniversalRouter, 1inch, Multicall (recursive inner-call decoding), and Gnosis Safe `execTransaction`. Flags CRITICAL unlimited approvals, setApprovalForAll(true), zero-minOut MEV sandwich exposure, non-zero ETH sent with approvals, and DELEGATECALL takeovers.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "data": {
              "type": "string",
              "required": true,
              "description": "0x-prefixed hex calldata string (e.g. 0x095ea7b3...)"
            },
            "to": {
              "type": "string",
              "required": false,
              "description": "Target 0x contract or recipient address"
            },
            "value": {
              "type": "string",
              "required": false,
              "description": "Native ETH/gas token value in wei (decimal or 0x hex)"
            },
            "chainId": {
              "type": "number",
              "required": false,
              "description": "EVM Chain ID (default: 8453 Base)"
            },
            "sender": {
              "type": "string",
              "required": false,
              "description": "Optional sender 0x address for swap output-diversion checks"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object",
              "properties": {
                "safeToExecute": {
                  "type": "boolean"
                },
                "recommendation": {
                  "type": "string"
                },
                "riskLevel": {
                  "type": "string"
                },
                "riskScore": {
                  "type": "number"
                },
                "standard": {
                  "type": "string"
                },
                "functionName": {
                  "type": "string"
                },
                "findingCount": {
                  "type": "number"
                }
              }
            },
            "audit": {
              "type": "object"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "10000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/audit-eip712",
      "description": "Audits off-chain `eth_signTypedData_v4` JSON objects or strings (`Permit`, DAI `Permit`, `PermitSingle`, `PermitBatch`, `PermitTransferFrom`, Seaport `OrderComponents`, Circle USDC EIP-3009 `TransferWithAuthorization` / `x402`, `ForwardRequest`, `SafeTx`) before signing. Computes EIP-712 `domainSeparator` and flags unlimited allowances, Seaport zero-consideration drains, DELEGATECALL meta-txs, multi-month expirations, and chainId/contract spoofing.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "typedData": {
              "type": "object",
              "required": true,
              "description": "eth_signTypedData_v4 typed data JSON object (with domain, types, primaryType, message)"
            },
            "expectedChainId": {
              "type": "number",
              "required": false,
              "description": "Optional expected EVM chainId (e.g. 8453)"
            },
            "expectedVerifyingContract": {
              "type": "string",
              "required": false,
              "description": "Optional expected 0x verifyingContract address"
            },
            "expectedRecipient": {
              "type": "string",
              "required": false,
              "description": "Optional expected 0x recipient for x402 / EIP-3009 authorization"
            },
            "expectedMaxAmount": {
              "type": "string",
              "required": false,
              "description": "Optional maximum expected raw atomic token amount"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object",
              "properties": {
                "safeToSign": {
                  "type": "boolean"
                },
                "recommendation": {
                  "type": "string"
                },
                "riskLevel": {
                  "type": "string"
                },
                "riskScore": {
                  "type": "number"
                },
                "schemaCategory": {
                  "type": "string"
                },
                "primaryType": {
                  "type": "string"
                },
                "findingCount": {
                  "type": "number"
                }
              }
            },
            "audit": {
              "type": "object"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "10000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/repair-cjk-csv",
      "description": "Detects and repairs garbled Chinese/Japanese/Korean CSV/TSV exports from GB18030, GBK, Big5, Shift-JIS, EUC-KR, UTF-16LE/BE, and double-encoded UTF-8-as-Latin1/CP1252; heals unquoted currency thousands commas; strips dangerous control bytes; armors 15+ digit IDs; and neutralizes OWASP CSV/DDE formula injection (=, +, -, @) into Excel-ready UTF-8 BOM CSV + structured JSON rows.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "content": {
              "type": "string",
              "required": false,
              "description": "Garbled or raw CSV text string (provide either content or contentBase64)"
            },
            "contentBase64": {
              "type": "string",
              "required": false,
              "description": "Base64-encoded raw legacy CSV bytes (GB18030/GBK/Big5/Shift-JIS/EUC-KR/UTF-16)"
            },
            "filename": {
              "type": "string",
              "required": false,
              "description": "Optional source filename (default: export.csv)"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object"
            },
            "headers": {
              "type": "array"
            },
            "rows": {
              "type": "array"
            },
            "utf8BomCsv": {
              "type": "string"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "20000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/extract-tables",
      "description": "Extracts tables from multi-page PDF binaries (Base64), HTML (with 2D rowspan/colspan expansion), Markdown, JSON/JSONL, or messy CSVs; stitches repeating headers across page breaks, repairs CJK mojibake, neutralizes Excel formula/DDE injection on user cells while generating live =SUM() and =AVERAGE() summary rows, and outputs Base64 OpenXML .xlsx, Markdown, and UTF-8 BOM CSV.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "content": {
              "type": "string",
              "required": false,
              "description": "HTML, Markdown, CSV, or JSON table content (provide content or contentBase64)"
            },
            "contentBase64": {
              "type": "string",
              "required": false,
              "description": "Base64-encoded PDF or binary document bytes"
            },
            "filename": {
              "type": "string",
              "required": false,
              "description": "Filename with extension hint (e.g. report.pdf, statement.html)"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object"
            },
            "tables": {
              "type": "array"
            },
            "markdown": {
              "type": "string"
            },
            "utf8BomCsv": {
              "type": "string"
            },
            "xlsxBase64": {
              "type": "string"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "20000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/reconcile-statements",
      "description": "Deterministically reconciles Alipay, WeChat Pay, Stripe, PayPal, or bank CSV/JSON statements against electronic invoices (CN Digital e-Invoice XML/PDF, UBL 2.1 XML, CSV, JSON) using exact BigInt micro-unit math: 1:1 order-ID matching, vendor+amount+date matching, cross-currency FX spread matching, and N-to-1 subset-sum combined invoice matching. Outputs structured JSON summary, anomaly alerts, UTF-8 BOM CSV, and Base64 3-sheet OpenXML .xlsx workbook.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "statements": {
              "type": "array",
              "required": true,
              "description": "Non-empty array of statement objects ({ filename, content | contentBase64 })"
            },
            "invoices": {
              "type": "array",
              "required": false,
              "description": "Array of electronic invoice objects ({ filename, content | contentBase64 })"
            },
            "baseCurrency": {
              "type": "string",
              "required": false,
              "description": "3-letter ISO base currency (default: CNY)"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object"
            },
            "transactions": {
              "type": "array"
            },
            "invoices": {
              "type": "array"
            },
            "anomalies": {
              "type": "array"
            },
            "utf8BomCsv": {
              "type": "string"
            },
            "xlsxBase64": {
              "type": "string"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    },
    {
      "scheme": "exact",
      "network": "base",
      "maxAmountRequired": "10000",
      "resource": "https://x402-web3-fin-gateway.vercel.app/api/v1/scan-token-risk",
      "description": "Automated technical token risk signals for software and agent workflows (not investment or financial advice). Queries public permissionless JSON-RPC state on Base Mainnet (`8453`), Celo Mainnet (`42220`), and Solana Mainnet directly to inspect EIP-1967 upgradeable proxies, unrenounced `owner()`, `SELFDESTRUCT`/`DELEGATECALL`/blacklist/fee-setter bytecode selectors, on-chain Uniswap V2/V3, Ubeswap & Aerodrome pool contract reserves + LP burn %, live `eth_call` `transfer()` simulation, Solana `mintAuthority`/`freezeAuthority`, Token-2022 `permanentDelegate`/`transferFeeConfig`/`transferHook` extensions, and Top-1/Top-5/Top-10 holder concentration.",
      "mimeType": "application/json",
      "payTo": "0xfEbDbB880C7f323c145d61683874a45540208a68",
      "maxTimeoutSeconds": 300,
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "tokenAddress": {
              "type": "string",
              "required": true,
              "description": "Base/Celo ERC-20 contract (0x...) or Solana SPL/Token-2022 mint address (Base58)"
            },
            "chain": {
              "type": "string",
              "required": false,
              "description": "Optional chain selector: auto, base, celo, or solana"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "tool": {
              "type": "string"
            },
            "summary": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string"
                },
                "tokenAddress": {
                  "type": "string"
                },
                "safeToTrade": {
                  "type": "boolean"
                },
                "recommendation": {
                  "type": "string"
                },
                "riskLevel": {
                  "type": "string"
                },
                "riskScore": {
                  "type": "number"
                },
                "findingCount": {
                  "type": "number"
                },
                "latencyMs": {
                  "type": "number"
                }
              }
            },
            "scan": {
              "type": "object"
            }
          }
        }
      },
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    }
  ]
}