morph-x402

Pay and receive USDC for HTTP resources on Morph L2 via x402.

3|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill morph-x402
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: morph-x402
Source: https://github.com/Pieverse-Eng/purrfect-skills/tree/main/morph/vendor/morph-x402
Command: npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill morph-x402

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, eth_account, eth_abi, eth_utils, and includes scripts (resource) components.

What problem does it solve?

This Skill enables agents and services on Morph L2 to discover, pay for, and receive USDC payments for HTTP-protected resources using the x402 protocol, removing friction when interacting with paywalled API endpoints and automating payment flows.

Core Features & Use Cases

  • Discover paywalls: Probe a URL to retrieve payment requirements (amount, payTo, asset) without initiating a payment.
  • Pay protected resources: Locally sign EIP-3009 TransferWithAuthorization, enforce max-payment limits, require explicit user confirmation, and produce PAYMENT-SIGNATURE headers for paid access.
  • Merchant onboarding & settlement: Register wallets to obtain HMAC credentials, verify incoming payment signatures, start a protected HTTP server, and settle verified payments on-chain via the Morph Facilitator; includes a dev mode for local testing.

Quick Start

Use the morph-x402 skill to discover payment requirements for https://api.example.com/resource and prepare a signed USDC authorization for payment.

Frequently Asked Questions about morph-x402

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pay for HTTP API resources using USDC on Morph L2?▼

To pay for HTTP API resources using USDC on Morph L2, you can use the x402 protocol to locally sign an EIP-3009 TransferWithAuthorization transaction and attach it as a PAYMENT-SIGNATURE header to your request.

What is the x402 protocol for monetized APIs?▼

The x402 protocol is a standard for monetized APIs that enables agents and services to discover paywall requirements, authorize USDC payments, and access HTTP-protected resources seamlessly on Morph L2.

How do I discover payment requirements for a paywalled URL without initiating a transaction?▼

You can discover payment requirements for a paywalled URL by probing the endpoint to retrieve details like amount, payTo address, and asset type without signing or initiating a USDC transaction.

How do I set up HMAC credentials to receive USDC payments for my API?▼

To set up HMAC credentials for receiving USDC payments, register your wallet with the Morph Facilitator to obtain HMAC-SHA256 authentication, then start a protected HTTP server to verify incoming payment signatures and settle them on-chain.

Does the x402 payment protocol enforce transaction limits and user confirmation?▼

Yes, the x402 implementation enforces max-payment limits and requires explicit user confirmation before locally signing the EIP-3009 TransferWithAuthorization for USDC payment, preventing unauthorized spending.

Can I test USDC payment settlement locally before deploying on Morph L2?▼

Yes, you can test USDC payment settlement locally using the included development mode, which simulates the Morph Facilitator and on-chain verification process before live deployment on chain ID 2818.