Skip to content

Getting Started

solana-kiss is a zero-dependency, full-featured TypeScript library for interacting with the Solana blockchain. It ships with:

  • A high-level Solana class that wires everything together.
  • A pure-TypeScript RPC layer with timeouts, retries, and rate-limiting.
  • A complete IDL parser and binary codec for Anchor programs.
  • Ergonomic helpers for public keys, transactions, signers, and wallet adapters.

Installation

bash
npm install solana-kiss

Minimal example

ts
import { Solana } from "solana-kiss";

const solana = new Solana("mainnet");

const { accountState } = await solana.getAndInferAndDecodeAccount(
  pubkeyFromBase58("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),
);

console.log(accountState);

What's next?

TopicDescription
The Solana ClassAll methods on the top-level entry point
Public KeysParsing, deriving, and verifying Pubkey values
TransactionsCompiling, signing, and sending transactions
InstructionsBuilding and decoding on-chain instructions
Signers & WalletsSigner and browser wallet adapters
RPC ClientLow-level JSON-RPC layer and middleware
IDL ProgramsLoading and caching Anchor program IDLs
IDL TypesBinary encoding/decoding with the type system
Execution & BlocksTransaction results and log parsing
SPL & UtilitiesWell-known program addresses and fee helpers
Data EncodingBase58, Base64, Base16, UTF-8, SHA-256

Solana: Keep It Simple, Stupid. (KISS)