auto-402-hub-pay
OfficialAutomate 402 payments via SCP hub routing
AuthorScryProtocol
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automatically pay HTTP 402-protected URLs through SCP hub routing. Handles offer discovery, AI-aware offer selection, channel funding, and payment in one step. Use when user says "pay this URL", "auto-pay", "402 payment", "buy access", or wants to call a paid API without manual channel management.
Core Features & Use Cases
- Discover offers for the target URL (GET → 402 response).
- Select the best offer using readiness scoring and cost awareness.
- Open/fund a hub channel automatically or use direct routing, including ERC20 allowance handling.
- Submit the paid request via SCP signing flow and return receipts.
Quick Start
Run the script from the x402s project root with a 402-protected URL to automatically discover offers, fund required channels, and complete the payment.
Dependency Matrix
Required Modules
ethers
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auto-402-hub-pay Download link: https://github.com/ScryProtocol/Contracts/archive/main.zip#auto-402-hub-pay Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.