Back to skills

pay-for-service

workflows

Calls paid API endpoints that use the x402 protocol, automatically handling USDC payments on Base. You give it a URL and it negotiates payment, sends the request, and returns the response. Works with

Setup & Installation

npx skills add https://github.com/coinbase/pay-for-service --skill pay-for-service
or paste the link and ask your coding assistant to install it
https://github.com/coinbase/pay-for-service
View on GitHub

What This Skill Does

Calls paid API endpoints that use the x402 protocol, automatically handling USDC payments on Base. You give it a URL and it negotiates payment, sends the request, and returns the response. Works with GET, POST, and other HTTP methods. It handles the x402 payment negotiation and USDC transfer in one command, so you don't have to manually sign transactions or figure out the payment flow for each endpoint.

When to use it

  • Working with pay for service functionality
  • Implementing pay for service features
  • Debugging pay for service related issues