> ## 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.

# API-viite

> Täydellinen TypeScript-API-viite LiteSVM:lle

Täydellinen API-dokumentaatio LiteSVM:n käyttöön `@solana/kit`-kirjaston ja sen laajennus-
ekosysteemin kanssa.

## API-osiot

<Columns cols={2}>
  <Card title="Tilien hallinta" href="/developers/docs/tools/litesvm/typescript/api-reference/account-management">
    setAccount, getAccount, airdrop, getBalance
  </Card>
  <Card title="Transaktiot" href="/developers/docs/tools/litesvm/typescript/api-reference/transactions">
    sendTransaction, simulateTransaction, blockhashien hallinta
  </Card>
  <Card title="Määritykset" href="/developers/docs/tools/litesvm/typescript/api-reference/configuration">
    Builder-metodit LiteSVM:n määrittämiseen
  </Card>
  <Card title="Aika ja sysvarit" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    Kellon manipulointi ja sysvar-tietojen käyttö
  </Card>
</Columns>

## Pikaviite

### Laajennuksen asennus

```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
```

### Tilien hallinta (client.svm)

| Metodi                                 | Kuvaus                   |
| -------------------------------------- | ----------------------------- |
| `setAccount(account)`                  | Aseta tilin tila suoraan    |
| `getAccount(address)`                  | Hae tilin tiedot         |
| `getBalance(address)`                  | Hae SOL-saldo               |
| `airdrop(address, lamports)`           | Lisää tilille varoja               |
| `minimumBalanceForRentExemption(size)` | Laske rent-exempt-vähimmäissaldo |

### Ohjelmien hallinta (client.svm)

| Metodi                                | Kuvaus                |
| ------------------------------------- | -------------------------- |
| `addProgram(programId, bytes)`        | Lataa ohjelma tavuista    |
| `addProgramFromFile(programId, path)` | Lataa ohjelma .so-tiedostosta |

### Transaktiot (client.svm)

| Metodi                    | Kuvaus                    |
| ------------------------- | ------------------------------ |
| `sendTransaction(tx)`     | Suorita transaktio          |
| `simulateTransaction(tx)` | Simuloi ilman tilamuutoksia |
| `latestBlockhash()`       | Hae nykyinen blockhash          |
| `expireBlockhash()`       | Siirry uuteen blockhashiin       |

### Määritykset (client.svm)

| Metodi                      | Kuvaus                           |
| --------------------------- | ------------------------------------- |
| `withSigverify(bool)`       | Ota allekirjoitusten vahvistus käyttöön tai poista se käytöstä |
| `withBlockhashCheck(bool)`  | Ota blockhashin tarkistus käyttöön tai poista se käytöstä   |
| `withSysvars()`             | Palauta sysvarit oletusarvoihinsa       |
| `withBuiltins()`            | Ota sisäänrakennetut ohjelmat käyttöön              |
| `withPrecompiles()`         | Ota esikäännetyt ohjelmat käyttöön           |
| `withTransactionHistory(n)` | Tallenna viimeiset n transaktiota             |
| `withComputeBudget(budget)` | Aseta laskentarajat                    |
| `withLamports(amount)`      | Aseta airdrop-faucetin saldo        |
| `withLogBytesLimit(n)`      | Aseta lokituloksen enimmäiskoko                  |

### Aika ja sysvarit (client.svm)

| Metodi                     | Kuvaus           |
| -------------------------- | --------------------- |
| `warpToSlot(slot)`         | Siirry tiettyyn slot-arvoon |
| `getClock()`               | Hae clock-sysvar      |
| `getRent()`                | Hae rent-sysvar       |
| `getEpochSchedule()`       | Hae epoch-aikataulu    |
| `getLastRestartSlot()`     | Hae viimeisimmän uudelleenkäynnistyksen slot |
| `setLastRestartSlot(slot)` | Aseta viimeisimmän uudelleenkäynnistyksen slot |

### RPC (client.rpc)

| Metodi                           | Kuvaus                        |
| -------------------------------- | ---------------------------------- |
| `getAccountInfo(address)`        | Hae yksittäinen tili (vain base64) |
| `getMultipleAccounts(addresses)` | Hae useita tilejä            |
| `getLatestBlockhash()`           | Hae nykyinen blockhash              |
