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

# SDK quickstart

> Build a browser-safe market flow with the packed public Slip SDK.

# SDK quickstart

Install `@slip/sdk@0.2.0` from a registry release or a provenance-pinned `npm pack` tarball.

```ts theme={null}
import { address } from "@solana/kit";
import { createSlipClient } from "@slip/sdk";

const slip = createSlipClient({
  network: "localnet",
  rpcUrl: "http://127.0.0.1:8899",
  websocketUrl: "ws://127.0.0.1:8900",
  compilerOrigin: "http://127.0.0.1:3000",
  programAddress: address(process.env.NEXT_PUBLIC_SLIP_PROGRAM_ID!),
  settlementMint: address(process.env.NEXT_PUBLIC_SLIP_SETTLEMENT_MINT!),
});

if (!(await slip.supportsUnifiedMarkets())) return; // keep controls hidden
const rulebook = await slip.compileRulebook({
  fixtureId: "18209181",
  question: "How many total goals?",
  outcomeLabels: ["0", "1", "2", "3", "4+"],
});
const creation = await slip.createMarket({ id, creator: walletAddress, rulebook });
```

The default export graph contains Kit codecs, instruction builders, RPC readers, subscriptions, integer money helpers, and reference verification. It does not import Anchor, web3.js, AI SDK, Ollama, or Node built-ins. Import server compilation from `@slip/sdk/ai` and authenticated TxLINE access from `@slip/sdk/txline`.

Your app signs the returned Kit instructions through Wallet Standard. Never persist copied pools or settlement state as authoritative data.
