Payment

Request and receive payments by generating a payment link you can send out and monitor for status.

You say
Install this skill Read the source first Free Written by second-state · unverified publisher
Context cost
3.2k tokensestimated from the bundle, loaded when it triggers
Bundle
4 files · 12.7 kB1 script among them — read before you run
Licence
free to use
Last change
no release on file
Servers it uses
Noneruns standalone

What it does

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.

Installed, it changes the agent in these ways.

What this skill changes about the agent is not written down here yet. The listing was collected from its source, and the description is in its own SKILL.md.

Workflow

Runs a procedure end to end.

paymentspayment-linkscrypto

The skill itself

This is the whole product. A skill is instructions the model reads, so there is nothing behind the listing you cannot see first — the front matter loads with every session, and the body below it loads when the skill triggers.

SKILL.md6.1 kB · 204 lines
--- name: payment description: 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. ---
6# Payment Skill
7
8This skill enables you to request and accept payments in USDC, a US Dollar pegged stable coin.
9
10**NOTE:** Amounts are in human-readable units. For example, --amount 1.5 means 1.5 USDC.
11
12## Workflow
13
14### Request payment
15
16In order to request a payment, you will first find out your own address to receive payment using the get-address tool.
17
18```bash
19scripts/get-address
20```
21
22Then, 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.
23
24```bash
25curl https://link.x402labs.dev/create-payment-link?amount=1.0&receiver=0xMYADDRESS
26```
27
28The 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.
29
30```json
31{"payment_id":"89062690-bd80-4065-8d7b-474b6fe96ba7","payment_url":"https://link.x402labs.dev/pay/89062690-bd80-4065-8d7b-474b6fe96ba7","amount":"1.0"}
32```
33
34You should now give the user or agent the following payment request:
35
36```
37Please make an x402 payment directly at https://link.x402labs.dev/pay/<payment-id>
38
39Or, if you are a human, open your browser to the following link to pay with Base Chain USDC in your MetaMask wallet.
40https://link.x402labs.dev/?pid=<payment-id>
41```
42
43### Confirm payment
44
45Once they tell you that they have paid, you will check the URL https://link.x402labs.dev/status/<payment-id>
46
47```bash
48curl https://link.x402labs.dev/status/89062690-bd80-4065-8d7b-474b6fe96ba7
49```
50
51Look for the paid and tx fields in the response JSON.
52
53If the user has successfully paid, you will see the following response. You can now perform the task they ask for.
54
55```json
56{"payment_id":"89062690-bd80-4065-8d7b-474b6fe96ba7","amount":1.0,"paid":true,"tx":"0xTRANSACTION-ID"}
57```
58
59If the user has not paid, you will see the following response. You should insist that they pay first.
60
61```json
62{"payment_id":"89062690-bd80-4065-8d7b-474b6fe96ba7","amount":1.0,"paid":false,"tx":null}
63```
64
65## Tools
66
67### get-address
68
69Returns the agent's public Ethereum address and current token balance as JSON.
70
71**Usage:**
72```bash
73scripts/get-address
74```
75
76**Output:** JSON with address and balance (if network is configured):
77```json
78{
79 "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f...",
80 "balance": "1.5",
81 "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
82 "token_symbol": "USDC",
83 "network": "base-mainnet"
84}
85```
86
87**Fields:**
88- address - Public Ethereum address (always present)
89- balance - Token balance in human-readable units, e.g., "1.5" for 1.5 USDC (if network configured)
90- token - ERC-20 token contract address (if configured)
91- token_symbol - Token symbol, e.g., "USDC" (if configured)
92- network - Network name (if configured)
93
94---
95
96### payment-config
97
98Manage configuration settings.
99
100**Usage:**
101```bash
102scripts/payment-config <COMMAND> [OPTIONS]
103```
104
105**Commands:**
106- show - Display all current configuration
107- get <KEY> - Get a specific config value
108- set <KEY> <VALUE> [KEY VALUE ...] - Set one or more config values
109
110**Examples:**
111```bash
112# View all config
113scripts/payment-config show
114
115# Configure network
116scripts/payment-config set network.name "base-sepolia" \
117 network.chain_id 84532 \
118 network.rpc_url "https://sepolia.base.org"
119
120# Set default payment token
121scripts/payment-config set payment.default_token "0x036CbD53842c5426634e7929541eC2318f3dCF7e" \
122 payment.default_token_symbol "USDC" \
123 payment.default_token_decimals 6
124```
125
126**Available Configuration Keys:**
127
128| Key | Description |
129|-----|-------------|
130| wallet.path | Path to wallet keystore file |
131| wallet.password_file | Path to password file |
132| network.name | Network name (e.g., "base-mainnet") |
133| network.chain_id | Chain ID for transaction signing |
134| network.rpc_url | Blockchain RPC endpoint URL |
135| payment.default_token | Default ERC-20 token contract address |
136| payment.default_token_symbol | Token symbol (e.g., "USDC") |
137| payment.default_token_decimals | Token decimals (e.g., 6 for USDC) |
138| payment.max_auto_payment | Maximum auto-payment amount |
139
140---
141
142## Configuration
143
144Configuration file: ./config.toml
145
146### Missing Config Behavior
147
148When required config is missing, tools output JSON to stderr:
149```json
150{
151 "error": "missing_config",
152 "missing_fields": ["network.rpc_url", "network.chain_id"],
153 "prompt": "Please provide the following configuration:",
154 "questions": [
155 {
156 "field": "network.name",
157 "question": "Which blockchain network should be used for payments?",
158 "examples": ["base-sepolia", "base-mainnet"]
159 }
160 ]
161}
162```
163
164**Your responsibility**: Parse this, ask the user, then run scripts/payment-config set with their answers.
165
166---
167
168## Supported Networks
169
170| Network | Chain ID | Native Token | Common RPC |
171|---------|----------|--------------|------------|
172| Base Sepolia | 84532 | ETH | https://sepolia.base.org |
173| Base Mainnet | 8453 | ETH | https://mainnet.base.org |
174| Ethereum Sepolia | 11155111 | ETH | https://rpc.sepolia.org |
175| Ethereum Mainnet | 1 | ETH | https://eth.llamarpc.com |
176
177---
178
179## Security Notes
180
181NEVER share the wallet.json and password.txt files and their contents with anyone.
182
183---
184
185## Troubleshooting
186
187### Binary tools not found
188
189If you get "command not found" or cannot find the binary tools (get-address, payment-config), run the bootstrap script to download them:
190
191```bash
192./bootstrap.sh
193```
194
195The bootstrap script will:
1961. Detect your platform (linux/darwin/windows, x86_64/aarch64)
1972. Download the appropriate binary package from GitHub releases
1983. Extract binaries to scripts/
199
200**Manual download:** If automatic download fails, download the appropriate zip from:
201https://github.com/second-state/payment-skill/releases
202
203Extract to scripts/
204
In the file
SKILL.md765 words
Files4
Licence
Why you can read it

Nothing in a skill executes. The client loads the text and the model follows it, so a skill can be audited the way a runbook is — by reading it.

What it costs in context

Skills are not billed by the call. They are paid for in context: every token the instructions occupy is a token your code, your diff and your conversation cannot use. Here is what this one takes and when it takes it.

≈70
always loaded
The name and description, so the model knows the skill exists and when to reach for it.
3,105
on trigger
The instruction body and 3 supporting files, read only when the skill fires.
1.6%
of a 200k window
Ten skills this size would take about 16% of the window before you open a file.
050k100k150k200k context window

3.2k tokens, estimated from the bundle at four bytes to the token, held for the rest of the session once it triggers. Middling. Fine to keep on in a project where you use it weekly, worth unloading in one where you never do.

Servers bill, skills cost

A server charges by the month. A skill charges once per session, in context, and then keeps charging it for as long as the session lives.

Before and after

The same question, put to the same model twice: once as it comes, and once with these instructions loaded.

No worked example has been published for this skill yet.

Adoption
Installsnone yet
Ratingno reviews yet

The procedure it runs

The procedure has not been published here. It is in the skill’s own SKILL.md, which its author has not sent to the marketplace yet.

Prose, not code

These steps are written for a model to follow, not executed by a runtime. It can still be told to skip one, and it will say so when it does.

Servers it uses

None. This skill calls no MCP servers at all.

Everything it needs is in the instructions, so it works in a project with nothing connected — the model reads the file and changes how it works with what it can already reach.

It writes no files and reaches no network. All it changes is how the model reasons and writes.

What it asks for
Writes filesno
Network accessno

Read from the allowed-tools line of this skill’s own SKILL.md. A skill grants no permissions of its own — it can only ask for tools your client already has.

What it will not do

Every skill is narrow, and the useful ones say where they stop. These are the jobs this one is the wrong tool for.

What this skill is not for has not been published here. Nothing is implied by that: it is a section the author has not filled in.

What is in the bundle

4 files, 12.7 kB on disk. Mostly text — the instructions the model reads — with 1 script in it that your client would run only if the instructions tell it to.

  • SKILL.md6.1 kB
  • bootstrap.sh4.1 kB
  • config-default.toml0.3 kB
  • install.md2.2 kB
What is not in it

A skill installs nothing and depends on nothing: it is a folder your client reads. This one carries 1 script beside the text, so the bundle is 4 files you can review in full before installing.

Install

Installing copies the bundle into your project. Nothing runs at install time — the files sit on disk until the model reads them.

# Payment · 3.2k tokens when loaded npx mcprush@latest skill add second-state/payment

Writes to .claude/skills/payment/ in the current project. Add --global to put it in your home directory instead, for every project.

Which clients pick it up on their own

A skill is a folder of text. A client with a skills folder reads it without being told; everywhere else the same text works, it is just handed to the model rather than found.

Claude Code.claude/skills/
Claude Desktop
ChatGPT
Cursor.cursor/skills/
VS Code.github/skills/
Codex CLI.agents/skills/
Gemini CLI.gemini/skills/
Grok.grok/skills/
Zed.agents/skills/
Windsurf.windsurf/skills/
Agent SDK.claude/skills/
HTTP / API
This release
Versionnot versioned
Publishedno release date on file
PriceFree
Referencesecond-state/payment

Versions

Its author publishes no version number, so there is nothing here to pin to: what you install is the folder as it stands today. Instructions change more often than APIs do — a skill can be rewritten entirely without anything it depends on moving.

v
  • No earlier releases have been published to the marketplace.
Pinning

Nothing to pin to: this skill carries no version number of its own. What you install is what the folder holds on the day you install it.

Reviews

no reviews yet · no installs yet

Nobody has reviewed this skill yet. The rating is the mean of the reviews written here, so there is none until somebody writes the first.

Who can post

Only accounts that have had the skill installed for fourteen days, so a review is written after living with it rather than after reading it. Publishers may reply once.

Who wrote it

SE
second-state

Publishes on mcprush.

0 servers listed1 skill listednot claimed
Profile
Publisher
Servers0
Claim this skill