---
url: 'https://docs.jpool.one/tech-docs/getting-started.md'
description: >-
  Get started integrating with JPool. Choose between the Stake Pool SDK, direct
  stake integration, and the CLI to deposit, withdraw, and query the pool
  programmatically.
---

# Getting Started

Welcome, developers! JPool is a Solana stake pool that mints **JSOL** when users deposit SOL. This section covers the tools for integrating JPool into your application or operating the pool from the command line.

## Choose your integration path

* **Building an app or service?** Use the [Stake Pool SDK](./stake-pool-sdk.md). It wraps deposits, withdrawals, direct staking, and pool queries behind a typed client.
* **Adding direct staking to a wallet or frontend?** Follow the [Direct Stake Integration](./direct-stake-integration.md) guide for the `signMessage` flow and on-chain transactions.
* **Running one-off operations?** Reach for the [CLI Reference](./cli-reference.md) to deposit, withdraw, and manage bonds without writing code.

## Quick start with the SDK

Install the package and its peer dependency, then query the pool:

::: code-group

```bash [npm]
npm install @jpool/sdk
```

```bash [pnpm]
pnpm add @jpool/sdk
```

```bash [yarn]
yarn add @jpool/sdk
```

:::

```typescript
import { Connection, clusterApiUrl, LAMPORTS_PER_SOL } from '@solana/web3.js'
import { JPoolClient } from '@jpool/sdk'

const connection = new Connection(clusterApiUrl('mainnet-beta'))
const client = new JPoolClient(connection)

const poolInfo = await client.poolInfo()
console.log('Total staked:', Number(poolInfo.totalLamports) / LAMPORTS_PER_SOL, 'SOL')
```

Peer dependency: `@solana/web3.js` v1.x. For the full API, configuration, and more examples, continue to the [Stake Pool SDK](./stake-pool-sdk.md).

## New to JPool?

If you want to understand the product before integrating, start with the [User Docs](../user-docs/getting-started.md) for an overview of staking strategies and JSOL, or the [Validator Docs](../validator-docs/getting-started.md) for the delegation program.
