second-state/payment-skill/payment
Claude Code and agent skill by second-state/payment-skill
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Request and receive payments. Use this skill when you need to request payment from another party. It will generate a payment link that you can send out. Through the payment link, you can also monitor the status of the payment.
Install
npx vskill@latest install second-state/payment-skill/paymentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Payment Skill
This skill enables you to request and accept payments in USDC, a US Dollar pegged stable coin.
NOTE: Amounts are in human-readable units. For example, --amount 1.5 means 1.5 USDC.
Workflow
Request payment
In order to request a payment, you will first find out your own address to receive payment using the get-address tool.
Then, create a payment link URL. The request below asks for a payment link for 1.0 USDC. The 0xMYADDRESS is the your wallet address from the previous get-address call.
The HTTP response contains the payment_url in the format of https://link.x402labs.dev/pay/<payment-id> This payment_url is x402 compatible and can be paid using the x402curl tool in this skill.
You should now give the user or agent the following payment request:
Confirm payment
Once they tell you that they have paid, you will check the URL https://link.x402labs.dev/status/<payment-id>
Look for the paid and tx fields in the response JSON.
If the user has successfully paid, you will see the following response. You can now perform the task they ask for.
If the user has not paid, you will see the following response. You should insist that they pay first.
Tools
get-address
Returns the agent's public Ethereum address and current token balance as JSON.
Usage:
Output: JSON with address and balance (if network is configured):
Fields:
address- Public Ethereum address (always present)balance- Token balance in human-readable units, e.g., "1.5" for 1.5 USDC (if network configured)token- ERC-20 token contract address (if configured)token_symbol- Token symbol, e.g., "USDC" (if configured)network- Network name (if configured)
payment-config
Manage configuration settings.
Usage:
Commands:
show- Display all current configurationget <KEY>- Get a specific config valueset <KEY> <VALUE> [KEY VALUE ...]- Set one or more config values
Examples:
Available Configuration Keys:
| Key | Description | |
|---|---|---|
wallet.path | Path to wallet keystore file | |
wallet.password_file | Path to password file | |
network.name | Network name (e.g., "base-mainnet") | |
network.chain_id | Chain ID for transaction signing | |
network.rpc_url | Blockchain RPC endpoint URL | |
payment.default_token | Default ERC-20 token contract address | |
payment.default_token_symbol | Token symbol (e.g., "USDC") | |
payment.default_token_decimals | Token decimals (e.g., 6 for USDC) | |
payment.max_auto_payment | Maximum auto-payment amount |
Configuration
Configuration file: ./config.toml
Missing Config Behavior
When required config is missing, tools output JSON to stderr:
Your responsibility: Parse this, ask the user, then run scripts/payment-config set with their answers.
Supported Networks
| Network | Chain ID | Native Token | Common RPC | |
|---|---|---|---|---|
| Base Sepolia | 84532 | ETH | https://sepolia.base.org | |
| Base Mainnet | 8453 | ETH | https://mainnet.base.org | |
| Ethereum Sepolia | 11155111 | ETH | https://rpc.sepolia.org | |
| Ethereum Mainnet | 1 | ETH | https://eth.llamarpc.com |
Security Notes
NEVER share the wallet.json and password.txt files and their contents with anyone.
Troubleshooting
Binary tools not found
If you get "command not found" or cannot find the binary tools (get-address, payment-config), run the bootstrap script to download them:
The bootstrap script will:
- Detect your platform (linux/darwin/windows, x86_64/aarch64)
- Download the appropriate binary package from GitHub releases
- Extract binaries to
scripts/
Manual download: If automatic download fails, download the appropriate zip from: https://github.com/second-state/payment-skill/releases
Extract to scripts/
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/payment/SKILL.md
Popularity
- Repository stars
- 224
- Repository forks
- 4
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 6 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/second-state/payment-skill/payment)