Skip to content

Lotvs Pay

Lotvs Pay is the seller’s side of agent payments. Install @lotvs/pay, put a price on a route, and AI agents pay for each request in digital dollars (USDC), straight to your address. Lotvs Pay never holds the money.

import { lotvsPay } from "@lotvs/pay";
app.get("/report", lotvsPay({ price: "0.10" }), (req, res) => {
res.json(report);
});

That route now costs ten cents. A request without payment is answered 402 Payment Required with the price. An agent pays and asks again, your code runs, and the money moves from the agent’s wallet to your address.

Nothing for the buyer to set up

No account with you, no API key, no invoice. The price travels with the response, and the payment with the next request.

Priced per request

A cent, ten cents, two dollars fifty. You write the price in dollars, and it can depend on the request.

The money never passes through Lotvs

It goes from the agent’s wallet to your address. There is no balance of yours anywhere to wait for or withdraw.

Nobody pays for a failed request

By default the payment is checked before your code runs and collected only after it succeeds.

  • The protocol is x402, the open standard for paying over HTTP with 402 Payment Required. Any client that speaks x402 can pay you, in version 1 or 2 of the protocol.
  • The money is USDC, a digital dollar, on Solana (the default) or on Base. You can take both at once. You price in dollars and receive USDC one for one.
  • A facilitator settles each payment. It checks the signed payment, pays the small network fee and puts it on the network. It cannot change the amount or where the money goes. The SDK uses public facilitators that need no account.

See How Lotvs Pay works for the full exchange.

Any x402 buyer: an agent or client that speaks x402 and holds USDC on a network you take. It pays you directly, and Lotvs holds nothing on the way.

  • Sellers: Lotvs Pay charges nothing. The SDK is free and MIT licensed, and the whole price goes to your address.
  • Buyers: the price you set, and nothing on top. The network fee is paid by the facilitator.

You do not need a Lotvs account. Any Solana or Base address works. A Lotvs account is one way to hold the dollars you earn and withdraw them to a bank.