ProfessorGPTProfessorGPT
Coinbase
CoinbaseCoinbase· v1.0.0
codingOfficial
Official Provider SkillView repo

Write code that pays for an HTTP API returning 402 Payment Required, using the x402 protocol and a CDP-managed wallet. Covers TypeScript and Python. Use when the user wants to call a paid endpoint from their own application or agent, add x402 payments to an HTTP client, hit an API that charges per request, migrate an existing x402 client off a raw private key, or is stuck on an unexpected 402 response.

Files1 files
SKILL.md238 lines
Loading editor…

Install

Recommended

One command — your agent picks it up automatically.

Select an AI agent above to see the install command.

or

Manual Install

More steps

Download the file and paste it into your agent's system prompt.

Skill details

Versionv1.0.0
AuthorCoinbase
Categorycoding
Skill IDcoinbase/cdp-sdk/skills/build-x402-client

Related skills

Build X402 ServerWrite code that charges for an HTTP route with the x402 protocol and receives USDC in a CDP-managed wallet. Covers TypeScript (Express, Hono, Next.js) and Python (FastAPI, Flask). Use when the user wants to monetize an API, price a route per request, put a paywall in front of an endpoint, accept payments from agents, or add x402 to a server they already run.Bump X402 DependenciesBumps every @x402/* package (the optional peer dependencies in the CDP TypeScript SDK, the pinned dev dependencies used to test the SDK against x402, and the dependencies in every TypeScript x402 example) to the latest lockstep-released version, then verifies the SDK and all examples still build, lint, format, and typecheck. Use when the user asks to bump, update, or sync x402 (or @x402) dependencies/peer dependencies in cdp-sdk, or when a new x402 release needs to be picked up across the repo.Coinbase ConvertQuote, approve, execute, and verify supported Coinbase currency conversions through remote MCP or local CLI, such as USD and USDC. Use for fiat/stablecoin conversion requests, not crypto buy/sell orders.Coinbase EquitiesPlan and manage eligible Coinbase stock or ETF orders through remote MCP or local CLI. Use for equity product selection, regular/extended sessions, whole-share constraints, trade dates, halts, and unavailable previews. These are real orders.Coinbase PortfoliosRead Coinbase balances and positions, list or manage portfolios, and transfer funds between portfolios through remote MCP or local CLI. Use for portfolio selection, account scope, portfolio creation/renaming/deletion, and internal transfers.Coinbase TradingPreview, place, verify, edit, cancel, or close Coinbase orders through remote MCP or local CLI. Use for crypto buy/sell requests, limits, stops, advanced orders, and order management; load the equity or futures companion for those products. These are real financial actions.