← Articles
Adrena: TypeScript SDK for Solana perps logo
adrena

Adrena: TypeScript SDK for Solana perps

· SEP 30, 2026 ·
Read
Share

Two pools: crypto main pool and commodities. createKitClient. Never commit the key.

devrels.xyz/a/341

Adrena is a Solana perpetual futures venue with a peer-to-pool model. LPs (ALP and RWALP) are the counterparty. Oracle prices, no order book. The TypeScript SDK is the builder surface: docs.adrena.trade/sdk/sdk. App adrena.trade. X @adrenaprotocol. GitHub AdrenaFoundation.

Install adrena-sdk@beta. It sits on @solana/kit (Web3.js v2). Docs say every transaction is submitted via Jito bundles. Client factory: createKitClient from adrena-sdk/clients. Put PRIVATE_KEY_STR, RPC_URL, optional WS_URL in .env. Never commit the key.

Pools and modules

Main pool: JITOSOL, WBTC, BONK as principal/collateral (decimals 9 / 8 / 5), USDC 6. Longs: collateral must equal principal. Shorts: collateral is always USDC. Commodities pool: XAU, XAG, WTI (6 decimals). Both sides USDC. No token swap. Close settles in USDC.

Imports: adrena-sdk/clients, /core (trade, liquidity, stake), /instructions, /helpers, /adrena-api.

bash
npm install adrena-sdk@beta
typescript
import { createKitClient } from "adrena-sdk/clients"
import { openMarketLong, openMarketShort } from "adrena-sdk/core"

const { wallet, rpc } = await createKitClient()

await openMarketLong({
  wallet,
  rpc,
  principalToken: "JITOSOL",
  collateralToken: "JITOSOL",
  collateralAmount: 10,
  leverage: 3,
})

await openMarketShort({
  wallet,
  rpc,
  principalToken: "JITOSOL",
  collateralToken: "USDC",
  collateralAmount: 50,
  leverage: 5,
})

Also in core: closeShort, getPositionStatus, addLimitOrder, addLiquidity, addLiquidStake. Amounts in the trade helpers are human-readable. ALP add liquidity uses native units (bigint). Stake type 1 is ADX, 2 is ALP. Liquid or locked. Rewards USDC plus ADX emissions.

Data API

Off-chain client new AdrenaApi() defaults to datapi.adrena.trade. Positions, pool/custody snapshots, trader info, Mutagen points, prices. Separate from RPC.

Keep reading

Get new articles in your inbox

Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.

Adrena: TypeScript SDK for Solana perps | devrels.xyz