Installation
SDK Initialization
Reference
- SDK README ↗
- Check the README for:
- Configure token pair
- Address conversion
- Important notes
- and more..
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Integrate with Skate AMM on Solana using the official SDK.
This SDK provides all the helpers for adding liquidity, swapping tokens, and burning liquidity.
npm install @skate-org/skate_amm_solana
import { Connection, Keypair } from "@solana/web3.js";
import { Wallet } from "@coral-xyz/anchor";
import { SkateSDK, Environment } from "@skate-org/skate_amm_solana";
// Use the appropriate RPC URL
const connection = new Connection(process.env.RPC_URL_902!, "confirmed");
// Create wallet from keypair
const keypair = Keypair.generate(); // or load from file
const wallet = new Wallet(keypair);
// Or initialize for PRODUCTION environment
const sdkProduction = new SkateSDK(connection, Environment.PRODUCTION, wallet);