> For the complete documentation index, see [llms.txt](https://aftermath-finance-1.gitbook.io/aftermath-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aftermath-finance-1.gitbook.io/aftermath-finance/aftermath-typescript-sdk.md).

# Aftermath TypeScript SDK

## **Install**

```sh
npm i aftermath-ts-sdk
```

## **Usage**

### 1. Create Aftermath provider

```typescript
const af = new Aftermath("TESTNET");

/*
DEVNET
TESTNET
*/
```

### 2. Create protocol provider

```typescript
const router = af.Router();
const pools = af.Pools();
const staking = af.Staking();
```
