scp-light

Automate 402 URL payments with SCP-signed transactions across hub and direct routes.

3|11|Updated May 27, 2022
One-click install
npx skills add https://github.com/ScryProtocol/Contracts --skill scp-light-scryprotocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scp-light
Source: https://github.com/ScryProtocol/Contracts/tree/main/x402s/skill/scp-light
Command: npx skills add https://github.com/ScryProtocol/Contracts --skill scp-light-scryprotocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ethers, and includes scripts (resource) components.

What problem does it solve?

Automates 402 URL payments by discovering offers, selecting an optimal route, funding channels, and submitting SCP-signed payments.

Core Features & Use Cases

  • Discover and compare offers from payees, choose the best route (hub or direct) based on network and asset filters.
  • Auto-open or top up SCP hub channels, handle ERC-20 allowances, and submit signed payments with minimal user intervention.
  • Use cases include paying HTTP 402-protected resources, automating micro-payments, and streamlining access control for protected assets.

Quick Start

Run the script from the x402s project root to initiate an automated 402 payment for a target URL.

Frequently Asked Questions about scp-light

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

FAQPage Schema
How do I automate HTTP 402 payments for protected URLs?

Automating HTTP 402 payments involves discovering payee offers, selecting an optimal route, funding channels, and submitting SCP-signed payments. This handles wallet funding and channel management in configurable networks with minimal intervention.

What is needed to set up SCP hub channels for micro-payments?

Setting up SCP hub channels requires Node.js 18+, an agent private key, and a properly configured SCP environment. The system automates channel opening, top-ups, and wallet funding to facilitate continuous micro-payments.

Does SCP routing support both native assets and ERC-20 tokens?

Yes, SCP routing supports both native assets and ERC-20 tokens. The automation handles ERC-20 allowances and approvals natively, allowing seamless wallet funding and signed payment submissions across configurable networks.

How do I select the best route for 402 URL payments?

Selecting the best route for 402 URL payments requires discovering and comparing offers from payees. The system evaluates hub and direct routes based on network and asset filters to choose the optimal payment path.

Can I use ethers.js to manage ERC-20 approvals for automated payments?

You can use ethers.js to manage ERC-20 approvals within this automated payment workflow. The system uses ethers as a dependency to handle allowances, wallet funding, and channel management for SCP-signed transactions.