Catalog npm
PACKAGE EXPLORERView in registry

402arc-core

npm

402ARC core: x402 protocol types, header codecs, Arc network config and EIP-3009 typed data for USDC on Arc.

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

README

Current package documentation

402arc-core

Protocol types, header codecs, network config, and EIP-3009 typed data for 402ARC, the x402 agent-payments toolkit for Arc (Circle's Layer-1, USDC).

npm i 402arc-core

Ships the x402 v2 wire types (exact scheme), base64-JSON PAYMENT-* header encode/decode, the Arc mainnet (eip155:5042) and testnet (eip155:5042002) network config with the USDC address, and the TransferWithAuthorization EIP-712 typed-data helpers (domain USDC / 2).

import { getNetwork, encodeHeader, toBaseUnits } from "402arc-core";
const net = getNetwork("eip155:5042002"); // USDC, 6 decimals, EIP-712 domain
toBaseUnits("0.001");                     // "1000"

Used by 402arc-facilitator, 402arc-middleware, and 402arc-client. 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:c5250020efed348ba0335bda26aff1e0312558b743e464c938698ed9238d688e