Getting Started
solana-kiss is a zero-dependency, full-featured TypeScript library for interacting with the Solana blockchain. It ships with:
- A high-level
Solanaclass 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-kissMinimal 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?
| Topic | Description |
|---|---|
| The Solana Class | All methods on the top-level entry point |
| Public Keys | Parsing, deriving, and verifying Pubkey values |
| Transactions | Compiling, signing, and sending transactions |
| Instructions | Building and decoding on-chain instructions |
| Signers & Wallets | Signer and browser wallet adapters |
| RPC Client | Low-level JSON-RPC layer and middleware |
| IDL Programs | Loading and caching Anchor program IDLs |
| IDL Types | Binary encoding/decoding with the type system |
| Execution & Blocks | Transaction results and log parsing |
| SPL & Utilities | Well-known program addresses and fee helpers |
| Data Encoding | Base58, Base64, Base16, UTF-8, SHA-256 |
