Catalog npm
PACKAGE EXPLORERView in registry

402arc-client

npm

402ARC client: payingFetch(), a fetch that signs an EIP-3009 USDC payment and retries when an API answers 402 on Arc.

agentsarccircleeip-3009paymentsusdcx402
Versions collected2
Direct dependencies4From release 0.1.1
Last observed20 Oct, 19:57 UTC

README

Current package documentation

402arc-client

A fetch wrapper that transparently pays x402 challenges in USDC on Arc, part of 402ARC.

npm i 402arc-client
import { createSigner, payingFetch } from "402arc-client";

const pay = payingFetch({
  account: createSigner(process.env.WALLET_KEY),
  maxValue: 10_000n,        // spend cap per request: 0.01 USDC
});

const res = await pay("https://api.example.dev/report");
// 402 → signs EIP-3009 authorization → retries → 200

Includes a per-payment spend cap and network allowlist so an agent can pay autonomously without being drained. See the docs. MIT.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.1Registry latest16 Sept 20264
0.1.016 Sept 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:4ee8a8010f9e8976b507c6b8bdd8f5075e0dd2190d4a5b22e4a210ff50ecfdc6