@402lane/core
v0.1.3
Published
Protocol types, header codecs, network config, and EIP-3009 typed data for [402LANE](https://www.402lane.com) — the x402 agent-payments toolkit for the Robinhood Chain (USDG, chain 4663).
Downloads
45
Readme
@402lane/core
Protocol types, header codecs, network config, and EIP-3009 typed data for 402LANE — the x402 agent-payments toolkit for the Robinhood Chain (USDG, chain 4663).
Ships the x402 v2 wire types (exact scheme), base64-JSON PAYMENT-* header
encode/decode, the Robinhood Chain mainnet (eip155:4663) and testnet (eip155:46630)
network config with USDG addresses, and the TransferWithAuthorization
EIP-712 typed-data helpers.
import { getNetwork, encodeHeader, toBaseUnits } from "@402lane/core";
const net = getNetwork("eip155:4663"); // USDG, 6 decimals, EIP-712 domain
toBaseUnits("0.001"); // "1000"Used by @402lane/facilitator, @402lane/middleware, and @402lane/client.
See the docs. MIT.
