@402lane/client
v0.1.3
Published
A fetch wrapper that transparently pays x402 challenges in USDG on Robinhood Chain (chain 4663) — part of [402LANE](https://www.402lane.com).
Readme
@402lane/client
A fetch wrapper that transparently pays x402 challenges in USDG on Robinhood Chain (chain 4663) — part of 402LANE.
import { createSigner, payingFetch } from "@402lane/client";
const pay = payingFetch({
account: createSigner(process.env.WALLET_KEY),
maxValue: 10_000n, // spend cap per request: 0.01 USDG
});
const res = await pay("https://api.example.dev/report");
// 402 → signs EIP-3009 authorization → retries → 200Includes a per-payment spend cap and network allowlist so an agent can pay autonomously without being drained. See the docs. MIT.
