Documentation Index
Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
Use this file to discover all available pages before exploring further.
What it is
The Farm / Staking program distributes reward tokens to accounts that stake an input token (typically an LP token from AMM v4 / CPMM / CLMM, but also supports single-asset staking). Each farm can emit up to multiple reward mints on independent schedules. Program ID: see reference/program-addresses. Multiple farm versions are in production (v3, v5, v6) and differ in reward slots and admin primitives — the versions-and-migration page documents which to use for which deployments.Chapter contents
Overview
Conceptual model: stake accounts, per-second emission rate, reward-per-stake accounting.
Accounts
Farm, UserStake (ledger), reward vaults, admin PDAs. Seeds and field layouts per farm version.
Instructions
CreateFarm, Deposit, Withdraw, Harvest, AddReward, SetRewards, RestartRewards, WithdrawReward.
Code demos
Create a farm, stake LP tokens, harvest, and top up reward vaults.
When to read this
- You are setting up incentives for your project’s LP.
- You are building a staking UI or aggregator that displays farm APRs.


