aftermath-ts-sdk

aftermath-ts-sdk is a skill for Codex from AftermathFinance/skills. It costs 82 tokens per session (1,174 once invoked), scanned A, original, Apache-2.0.

A reference guide for using the Aftermath TypeScript SDK, a software package for interacting with the Aftermath protocol on the Sui blockchain.

In plain words
What is it for?
Use it when initializing the SDK, working with pools, farms, staking, perpetual markets, transactions, gRPC, WebSockets, or transport errors.
Why use it?
It helps developers use the current package and setup correctly instead of relying on outdated constructors, package names, or API assumptions.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when initializing the SDK, working with pools, farms, staking, perpetual markets, transactions, gRPC, WebSockets, or transport errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aftermathfinance/skills/aftermath-ts-sdk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AftermathFinance/skills --skill aftermath-ts-sdk
Clone the repo
git clone --depth 1 https://github.com/AftermathFinance/skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aftermath-ts-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/aftermathfinance/skills/aftermath-ts-sdk.svg)](https://agentmods.dev/skills/aftermathfinance/skills/aftermath-ts-sdk)
Your own site
<a href="https://agentmods.dev/skills/aftermathfinance/skills/aftermath-ts-sdk"><img src="https://agentmods.dev/badge/skills/aftermathfinance/skills/aftermath-ts-sdk.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01174
Opus 5 $0.00041 $0.00587
Sonnet 5 $0.00016 $0.00235
Haiku 4.5 $0.00008 $0.00117

Measured 7d ago against content hash aa6dd8313afd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

aftermath-ts-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aftermath-ts-sdk/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aftermath TypeScript SDK

This skill documents aftermath-ts-sdk v3.1.0 against the Aftermath API as of 2026-08-19. Read the focused reference files only for the package or compatibility surface being changed.

Start with the supported entry point

Install and import the package by its actual name:

npm i [email protected]
import { Aftermath } from "aftermath-ts-sdk";

const sdk = await Aftermath.create({ network: "MAINNET" });
const pools = sdk.Pools();
const perps = sdk.Perpetuals();

Do not use the old new Aftermath(...); await init() pattern or the old @aftermath-finance/sdk package name. Direct construction is private; the async factory bootstraps addresses and a SuiGrpcClient.

Choose the surface

Need Use
Initialization, network overrides, BigInt, abort signals, gRPC, JSON-RPC, or transport errors transport-and-lifecycle.md
Pool/farm/staking/router/coin/wallet/general package methods packages.md
Perpetual markets, accounts, vaults, order builders, TWAP, or WebSockets perpetuals.md
Determine whether an SDK method matches the current API service backend-alignment.md
Raw endpoint payloads and operational safety ../api/SKILL.md and its focused references

The root package re-exports the configured provider, selected package classes, types, casting helpers, and transport error utilities. Prefer sdk.<Accessor>() for configured clients; the accessors are functions, not singleton properties. The current configured accessors are Pools, Staking, SuiFrens, Faucet, Router, NftAmm, ReferralVault (deprecated), Referrals, GasPools, Perpetuals, Rewards, Farms, Dca, Multisig, LimitOrders, UserData, Sui, Prices, Wallet(address), Coin(coinType?), DynamicGas, and Auth. At v3.1.0, not every accessor class is re-exported from the package barrel (Dca, LimitOrders, Multisig, Referrals, Rewards, UserData, and DynamicGas are the important exceptions); use the configured accessors instead of assuming a direct named import exists.

Read the full file on GitHub · 86 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 86 lines · 82 tokens per session scan A aa6dd8313afd

Subscribe to this mod's changes

aftermath-ts-sdk is a skill published in the GitHub repository AftermathFinance/skills (5 stars, last pushed 16d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,174 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

signature-replay

Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.

PurpleAILAB/Decepticon · 31 tokens

official-sui-skills

Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…

MystenLabs/sui · 116 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

trading-signal

Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…

tradecatlabs/tradecat-public · 64 tokens

bridge

Cross-chain token transfers using Wormhole and CCTP.

alsk1992/CloddsBot · 13 tokens

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens