The mutable configuration used for subsequent requests.
StaticcastingStatic casting utilities for conversions such as bigint and IFixed.
StatichelpersReusable static helpers for parsing, validation, math, and transaction utilities.
The Sui network this provider is configured for.
One of "DEVNET", "TESTNET", "LOCAL", or "MAINNET".
Creates the authentication provider for Aftermath API access tokens.
A new Auth provider configured with this instance's caller settings.
Returns a Coin helper for the given coin type. Pass undefined
for generic coin-metadata utilities.
OptionalcoinType: string
Optional fully qualified Move coin type, such as "0x2::sui::SUI".
A new Coin provider for the requested type or for generic coin metadata.
Creates the dollar-cost-averaging provider.
A new Dca provider configured with this instance's caller settings.
Creates the dynamic-gas provider for sponsored transaction preparation.
A new DynamicGas provider configured with this instance's caller settings.
Creates the farms provider.
A new Farms provider configured with this instance's network and addresses.
Creates the faucet provider for supported development and test networks.
A new Faucet provider configured with this instance's network and addresses.
Creates the shared gas-pool provider.
A new GasPools provider configured with this instance's network and low-level API.
Fetches the Aftermath on-chain addresses (object IDs, packages, etc.)
directly from the API. Typically you don't need to call this — the
create factory handles it. Useful for cache warmers or tooling.
OptionalabortSignal: AbortSignal
Optional signal that cancels the HTTP request.
A promise for the package and object addresses returned by the API.
Returns the resolved Aftermath API base URL for this instance.
The value is the configured baseUrl, or the canonical URL selected from
network when no override was supplied.
The API base URL, or undefined when the inherited caller has no endpoint.
Creates the limit-orders provider.
A new LimitOrders provider configured with this instance's caller settings.
Creates the multisig provider.
A new Multisig provider configured with this instance's network and addresses.
Creates the NFT AMM provider.
A new NftAmm provider configured with this instance's network and addresses.
Creates the perpetuals provider.
A new Perpetuals provider configured with this instance's network and addresses.
Creates the DEX pool provider.
A new Pools provider configured with this instance's network and addresses.
Creates the coin price-feed provider.
A new Prices provider configured with this instance's caller settings.
Creates the referral-program provider.
A new Referrals provider configured with this instance's caller settings.
Creates the rewards provider.
A new Rewards provider configured with this instance's caller settings.
Creates the smart order router provider.
A new Router provider configured with this instance's caller settings.
Creates the liquid-staking provider.
A new Staking provider configured with this instance's network and addresses.
Creates the low-level Sui provider.
A new Sui provider configured with this instance's network and API.
Creates the SuiFrens provider.
A new SuiFrens provider configured with this instance's network and addresses.
Attempts to decode a raw Move abort/error string into a structured
error code, package ID, module name, and human-readable message.
Returns undefined when no registered package recognizes the error.
Thin pass-through to the underlying AftermathApi so consumers
don't need to reach into the private api field.
Raw Sui Move-abort text to parse and translate.
The parsed error and registered message, or undefined when the text is malformed or unregistered.
Creates the user-data provider.
A new UserData provider configured with this instance's caller settings.
Creates a Wallet instance scoped to a specific user address.
The Sui address (e.g., "0x...").
A new Wallet provider scoped to address.
StaticapiReturns the canonical Aftermath API host for a Sui network.
To target a custom or local host, pass baseUrl in CallerConfig to the
constructor instead.
The Sui network whose host to return.
The network's HTTPS or local HTTP API host.
StaticcreateConstructs and fully initializes an Aftermath instance.
Resolves on-chain addresses, configures the Sui fullnode client, and
returns a ready-to-use instance. Pass addresses or api to skip
the corresponding bootstrap steps.
The selected network supplies canonical API and fullnode URLs unless the
options provide overrides.
Network, endpoint, address, and low-level API options.
OptionalabortSignal: AbortSignal
Optional signal that cancels address discovery.
A fully initialized provider.
StaticdefaultReturns the canonical Sui fullnode URL for a network.
The network whose fullnode URL to return. undefined
defaults to mainnet.
The network's fullnode URL.
The
Aftermathclass is the primary entry point for interacting with the Aftermath Finance protocols and utilities on the Sui blockchain. It exposes sub-providers (e.g.Router,Staking,Farms) configured for the chosen network.Instances are created through the async Aftermath.create factory — direct construction is not supported. Package accessors return a new provider on each call. Providers that need package or object addresses throw when their section is missing from the configured ConfigAddresses.
Example