@lane988/core
v0.1.1
Published
Protocol types, header codecs, network config, and EIP-3009 typed data for [LANE988](https://lane988.vercel.app) — the x402 agent-payments toolkit for the Stable chain (USDT0, chain 988).
Readme
@lane988/core
Protocol types, header codecs, network config, and EIP-3009 typed data for LANE988 — the x402 agent-payments toolkit for the Stable chain (USDT0, chain 988).
Ships the x402 v2 wire types (exact scheme), base64-JSON PAYMENT-* header
encode/decode, the Stable mainnet (eip155:988) and testnet (eip155:2201)
network config with USDT0 addresses, and the TransferWithAuthorization
EIP-712 typed-data helpers.
import { getNetwork, encodeHeader, toBaseUnits } from "@lane988/core";
const net = getNetwork("eip155:988"); // USDT0, 6 decimals, EIP-712 domain
toBaseUnits("0.001"); // "1000"Used by @lane988/facilitator, @lane988/middleware, and @lane988/client.
See the docs. MIT.
