> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Dokumentacja API

> Kompletna dokumentacja API TypeScript dla LiteSVM

Kompletna dokumentacja API do używania LiteSVM z `@solana/kit` i jego
ekosystemem wtyczek.

## Sekcje API

<Columns cols={2}>
  <Card title="Zarządzanie kontami" href="/developers/docs/tools/litesvm/typescript/api-reference/account-management">
    setAccount, getAccount, airdrop, getBalance
  </Card>
  <Card title="Transakcje" href="/developers/docs/tools/litesvm/typescript/api-reference/transactions">
    sendTransaction, simulateTransaction, zarządzanie blockhash
  </Card>
  <Card title="Konfiguracja" href="/developers/docs/tools/litesvm/typescript/api-reference/configuration">
    Metody buildera do konfigurowania LiteSVM
  </Card>
  <Card title="Czas i sysvars" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    Manipulowanie zegarem i dostęp do sysvars
  </Card>
</Columns>

## Krótki przewodnik

### Konfiguracja wtyczki

```typescript
import { createClient, generateKeyPairSigner } from "@solana/kit";
import { litesvm } from "@solana/kit-plugin-litesvm";
import { signer } from "@solana/kit-plugin-signer";

const mySigner = await generateKeyPairSigner();
const client = createClient().use(signer(mySigner)).use(litesvm());
// client.svm: LiteSVM instance
// client.rpc: RPC compatibility layer
```

### Zarządzanie kontami (client.svm)

| Metoda                                 | Opis                   |
| -------------------------------------- | ----------------------------- |
| `setAccount(account)`                  | Ustaw stan konta bezpośrednio    |
| `getAccount(address)`                  | Pobierz dane konta         |
| `getBalance(address)`                  | Pobierz saldo SOL               |
| `airdrop(address, lamports)`           | Zasil konto środkami               |
| `minimumBalanceForRentExemption(size)` | Oblicz minimalne saldo zwalniające z rent |

### Zarządzanie programami (client.svm)

| Metoda                                | Opis                |
| ------------------------------------- | -------------------------- |
| `addProgram(programId, bytes)`        | Załaduj program z bajtów    |
| `addProgramFromFile(programId, path)` | Załaduj program z pliku .so |

### Transakcje (client.svm)

| Metoda                    | Opis                    |
| ------------------------- | ------------------------------ |
| `sendTransaction(tx)`     | Wykonaj transakcję          |
| `simulateTransaction(tx)` | Zasymuluj bez zmian stanu |
| `latestBlockhash()`       | Pobierz bieżący blockhash          |
| `expireBlockhash()`       | Przejdź do nowego blockhash       |

### Konfiguracja (client.svm)

| Metoda                      | Opis                           |
| --------------------------- | ------------------------------------- |
| `withSigverify(bool)`       | Włącz/wyłącz weryfikację podpisów |
| `withBlockhashCheck(bool)`  | Włącz/wyłącz walidację blockhash   |
| `withSysvars()`             | Przywróć sysvars do wartości domyślnych       |
| `withBuiltins()`            | Włącz programy wbudowane              |
| `withPrecompiles()`         | Włącz programy prekompilowane           |
| `withTransactionHistory(n)` | Przechowuj ostatnie n transakcji             |
| `withComputeBudget(budget)` | Ustaw limity obliczeniowe                    |
| `withLamports(amount)`      | Ustaw saldo faucetu airdrop        |
| `withLogBytesLimit(n)`      | Ustaw limit wyjścia logów                  |

### Czas i sysvars (client.svm)

| Metoda                     | Opis           |
| -------------------------- | --------------------- |
| `warpToSlot(slot)`         | Przeskocz do wybranego slot |
| `getClock()`               | Pobierz sysvar clock      |
| `getRent()`                | Pobierz sysvar rent       |
| `getEpochSchedule()`       | Pobierz harmonogram epoch    |
| `getLastRestartSlot()`     | Pobierz ostatni slot restartu |
| `setLastRestartSlot(slot)` | Ustaw ostatni slot restartu |

### RPC (client.rpc)

| Metoda                           | Opis                        |
| -------------------------------- | ---------------------------------- |
| `getAccountInfo(address)`        | Pobierz pojedyncze konto (tylko base64) |
| `getMultipleAccounts(addresses)` | Pobierz wiele kont            |
| `getLatestBlockhash()`           | Pobierz bieżący blockhash              |
