New:Socket for Asana Is Now Available.Learn more
Sign In

@agonx402/types

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@agonx402/types

Shared type definitions for the Agon payment SDK

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@agonx402/types

Shared TypeScript type definitions for the Agon payment protocol.

Full Documentation | GitHub

Used internally by @agonx402/client and @agonx402/platform. You typically don't need to install this directly — it's included as a dependency of both SDKs.

Install

npm install @agonx402/types

What's included

  • Account typesAccount, AccountBalance, AutoRefillSettings, deposit/withdrawal types
  • Reservation typesAuthorizeRequest/Response, ConsumeRequest/Response, ReleaseRequest/Response
  • Spending controlsSpendingControls, SpendingOverride, SpendingLimitExceededDetails
  • Platform typesApiPlatform, RegisterPlatformRequest/Response
  • Proxy typesProxyRequest/Response for x402 compatibility mode
  • Settlement typesSettlement, SettlementBatch for batch on-chain payouts
  • Error typesAgonError class with typed error codes and helper methods
  • Config typesAgonPlatformConfig, OverrideSigner, pricing utilities
  • ConstantsAGON_HEADERS, USDC (mints, decimals), parsePrice()

Conventions

  • All monetary amounts are in USDC smallest units (6 decimals): 1 USDC = 1_000_000 units
  • All IDs are strings (UUIDs)
  • All timestamps are ISO 8601 strings
  • Wire format uses snake_case, SDK-facing types use camelCase

License

MIT

FAQs

Package last updated on 22 Feb 2026

Related posts