AlexRubik
adrena-sdk-ts
TypeScript

Adrena is a leverage trading perpetuals exchange on the Solana blockchain focusing on the gamification and competitiveness of trading.

Last updated Nov 22, 2025
10
Stars
1
Forks
1
Issues
0
Stars/day
Attention Score
14
Language breakdown
TypeScript 100.0%
JavaScript 0.0%
Files click to expand
README

npm version npm downloads

In development...

SDK for interacting with the Adrena Protocol using Typescript and @solana/kit

Adrena Links:

  • Website: https://app.adrena.xyz/
  • X: https://x.com/AdrenaProtocol
  • Discord: https://discord.gg/Z3UZAVA2ch
  • Docs: https://docs.adrena.xyz/

Installation

Install the Adrena SDK:

Using yarn

# Install the SDK
yarn add adrena-sdk-ts@beta

Using npm

# Install the SDK
npm install adrena-sdk-ts@beta

Configuration

To use this SDK, you will need to interact with the Solana blockchain using an RPC URL and sign transactions with your private key. We will initialize a "Solana Kit Client" to use these dependencies.

The Kit Client can be configured in two ways:

  • Using .env variables:
Create a file in your root directory, name it .env, and provide it with these values: - Example .env file - Remember to put .env in your .gitignore file if you are using Git - PRIVATEKEYSTR: Your Solana private key - RPC_URL: Solana RPC URL - WS_URL: Solana WebSocket URL (optional)
  • Passing configuration directly:
- NOT RECOMMENDED but you can also provide your private key directly in the code.
import { createKitClient } from 'adrena-sdk-ts';
   
   const client = await createKitClient({
     privateKey: 'your-private-key',
     rpcUrl: 'https://your-rpc-url.com',
     wsUrl: 'wss://your-ws-url.com' // optional
   });

Get Started

See examples directory to see how we can interact with the Adrena Protocol.

© 2026 GitRepoTrend · AlexRubik/adrena-sdk-ts · Updated daily from GitHub