x402-layer
CommunityPay for APIs with USDC; monetize endpoints.
Authorivaavimusic
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables AI agents to pay for API access and deploy monetized endpoints on Base and Solana networks.
Core Features & Use Cases
- Deploy new monetized endpoints and manage access via 402 payments and credits.
- Discover, list, and manage marketplace endpoints for consumer and provider workflows.
- Support pay-per-request and credit-based access flows with marketplace integration and endpoint management.
Quick Start
- Install dependencies: pip install -r requirements.txt
- Configure wallet environment: export WALLET_ADDRESS="0xYourWalletAddress" and export PRIVATE_KEY="0xYourPrivateKey"
- Create an endpoint: python scripts/create_endpoint.py my-api "My API" https://api.example.com 0.01
- Pay for access (Base): python scripts/pay_base.py https://api.x402layer.cc/e/weather-data
- Top up credits for your endpoint: python scripts/topup_endpoint.py my-api 10
- Discover services: python scripts/discover_marketplace.py
Dependency Matrix
Required Modules
requestseth_accountsolderspython-dotenv
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: x402-layer Download link: https://github.com/ivaavimusic/SGL_DOCS_2025/archive/main.zip#x402-layer 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 223,000+ vetted skills library on demand.