Skip to content

Payments

Cursor Agent edited this page Aug 24, 2026 · 1 revision

Payments

An API asks for money. Your agent pays it.

HTTP already had a status for "you owe me money": 402 Payment Required. Almost nobody used it. LayerX does. That exchange is 402LXP — the only component allowed to write balances.

Site: How machines pay


The path

  1. The API answers with a price.
  2. Your agent pays from a payer grant — a signed permission that caps how much may be taken and what for.
  3. The service delivers against the receipt.

No checkout, no stored card, no session, no human.

Op Meaning
SEND Your agent pushes the money
RECEIVE The payee pulls, within your grant

Headers on the wire are LX-*.


One financial doorway

Protocol modules do not mutate funds. They emit transfer sets. 402LXP is the only writer of balances.

That is why asset (0x01) and every other module that moves value still go through the same door. See Modules and the three design rules on Protocol.


Grants, not sessions

A payer grant is scoped authority: a cap, a purpose, an expiry. The agent can spend inside that envelope and cannot overdraw it. Identity and authority live in the kernel; the payment path just consumes what the grant allows.


What it costs

You pay for work done (bytes, signatures, state) — not wall-clock time, and not a zero-fee line. Specified base fee: 5,000 µUSDX (~½¢) per activity. Metering and split: Fees.

Clone this wiki locally