# x402 Implementation Gotchas - The Bugs That Actually Bite

> The silent failures in x402 service builds: viem's getLogs dropping a bare topics array, public Base RPC rate limits, EIP-712 signing pitfalls, bigint serialization, and how to structure a paid route so settlement verifies.

x402 Implementation Gotchas - The Bugs That Actually Bite is a paid AI agent skill on Agensi by toolweather. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [toolweather](https://www.agensi.io/creators/toolweather)
- Version: 1.1
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/x402-implementation-gotchas-the-bugs-that-actually-bite
- Tags: web3-crypto, apis-backend, code-quality-review

## About this skill

A paid x402 API is Hono + x402 middleware + a viem chain read + an oracle key. The protocol is easy; the gotchas are what cost real debugging time. This skill covers the eight failures that actually bite in production: viem's getLogs silently ignoring a bare topics array, public Base RPC rate limits on eth_getLogs, EIP-712 typed data with bigints breaking JSON.stringify, recoverTypedDataAddress returning a promise, x402 v2 payment headers and atomic USDC amounts, Cloudflare Workers env bindings, testing the paid flow without a funded wallet, and the openapi/payment-header shape a directory probes.

## Requires

- Node.js 20+
- TypeScript
- Cloudflare Workers or Node
- Base network RPC access

## Known limitations

Does not run a facilitator or custody funds. Publishing to a directory that requires its own API key is a manual step.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the x402 Implementation Gotchas - The Bugs That Actually Bite skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does x402 Implementation Gotchas - The Bugs That Actually Bite do?

The silent failures in x402 service builds: viem's getLogs dropping a bare topics array, public Base RPC rate limits, EIP-712 signing pitfalls, bigint serialization, and how to structure a paid route so settlement verifies.

### Which AI agents support x402 Implementation Gotchas - The Bugs That Actually Bite?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use x402 Implementation Gotchas - The Bugs That Actually Bite?

Connect your AI agent to Agensi through MCP, then ask it to use x402 Implementation Gotchas - The Bugs That Actually Bite on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
