🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

aftermath-ts-sdk

Package Overview
Dependencies
Maintainers
2
Versions
505
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aftermath-ts-sdk

Aftermath TypeScript SDK

1.3.0
latest
Source
npm
Version published
Weekly downloads
1.7K
-6.71%
Maintainers
2
Weekly downloads
 
Created
Source

Aftermath SDK

The Aftermath SDK provides easy access to Aftermath Finance's protocols on the Sui blockchain. Please note that not all of our protocols are on Testnet, but all of them are Mainnet.

Installation

npm i aftermath-ts-sdk

Quick Start (Aftermath SDK)

For most integrations, use the Aftermath SDK for simplified access:

const afSdk = new Aftermath("MAINNET"); // "MAINNET" | "TESTNET"
await afSdk.init(); // initialize provider

// Access protocols
const router = afSdk.Router();
const pools = afSdk.Pools();
const staking = afSdk.Staking();
const farms = afSdk.Farms();
const dca = afSdk.Dca();

Advanced Usage (AftermathApi)

For complex transaction construction, use AftermathApi for direct control:

const afSdk = new Aftermath("MAINNET");
const addresses = afSdk.getAddresses();

const afApi = new AftermathApi(
	new SuiClient({
		transport: new SuiHTTPTransport({
			url: "https://fullnode.mainnet.sui.io",
		}),
	}),
	addresses // Configuration addresses
);

// Access protocol APIs
const poolsApi = afApi.Pools();
const stakingApi = afApi.Staking();
const farmsApi = afApi.Farms();

Available Protocols

Pools (AMM)

  • Automated Market Maker pools for trading
  • Support for stable and uncorrelated assets
  • Up to 8 assets per pool
  • View Pools Documentation

Router

Staking

Farms

DCA (Dollar-Cost Averaging)

Rate Limits

Default rate limit: 1000 requests per 10 seconds

For higher limits, contact us via:

Keywords

aftermath

FAQs

Package last updated on 20 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts