Ray tutorial is an Educational Resource for RAY Staking Deposits and Reward Claims
Ray tutorial is a practical sequence for depositing the Solana SPL token RAY into Raydium's single-asset staking contract, tracking the resulting on-chain position and claiming emitted RAY rewards. The workflow requires a Solana wallet, the canonical RAY asset and enough SOL for transaction fees. Yield isn't fixed; the interface derives it from the reward schedule and total deposited RAY.
Updated on
This guide stays inside that deposit-to-claim path. It explains costs early, then covers balance changes, confirmation, partial withdrawals and the farm ledger that calculates pending rewards for the same connected address.
It is a step-by-step RAY staking procedure for depositing tokens into Raydium and claiming on-chain rewards, with yields subject to protocol emissions.
Depositing RAY Through the Single-Asset Staking Panel
The single-asset Raydium staking panel deposits RAY directly into a farm vault, so the decisive first check is that both the input and reward asset read RAY.
The panel exposes Available RAY, Staked RAY, an APR and Pending rewards in one place. Connect Phantom, Solflare or Backpack on Solana, then open Raydium's staking view and expand the RAY position. Compare the asset with the canonical mint, 4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R, before entering an amount. This mint is a Solana public-key identifier, not a ticker substitute; matching it removes ambiguity when a wallet contains several assets with similar labels. A Ledger hardware wallet can authorize through a supported wallet connector while the connected address remains the account owner.
Use the panel in this order:
- Connect the wallet that owns the RAY token account.
- Confirm Solana and the RAY mint before selecting the stake.
- Expand the RAY staking position and enter the deposit amount.
- Review the SOL debit, instructions and destination accounts.
- Approve the transaction and wait for the Staked balance to refresh.
SOL Fees, Account Creation and the First Deposit
The first RAY deposit costs a Solana transaction fee and may also fund new on-chain accounts, making the wallet's SOL balance the deciding condition.
A Solana transaction charges a base fee of 5,000 lamports for each required signature, before any optional prioritization fee. One SOL contains 1,000,000,000 lamports. The optional priority fee uses micro-lamports per compute unit: 1,000,000 micro-lamports equal one lamport, and its charge is the ceiling of the compute-unit price times the compute-unit limit divided by 1,000,000. A first interaction may also create a per-wallet farm ledger and fund its rent-exempt balance. That account funding isn't a Raydium percentage, even when the wallet groups it with the transaction fee inside one SOL debit.
The first deposit therefore has the widest SOL requirement; later claims commonly reuse the accounts already created.
How Much SOL Should Stay in the Wallet?
A wallet should retain enough SOL for the deposit, a later claim and a withdrawal; three separate submissions represent the most useful operating reserve. The exact debit is quote-specific because the priority fee and account creation change by transaction. Read the wallet's final SOL debit before signing, then retain fee capacity for one correction or resubmission. RAY itself doesn't pay Solana transaction fees.
Reading Available, Staked and Pending RAY Balances
Raydium's three balance fields decide whether staking succeeded: Available RAY stays in the wallet, Staked RAY sits in the vault and Pending RAY remains claimable.
Underneath that, RAY uses 6 decimal places, so one whole RAY equals 1,000,000 base units and the smallest representable amount is 0.000001 RAY. A wallet or interface may hide trailing digits, while the SPL Token account preserves them. After a deposit, Available falls by the submitted amount and Staked rises by that amount. A separate Pending figure grows from emissions. If the interface refreshes slowly, the confirmed token-account changes and farm ledger settle the question. Those three movements create clear before-and-after proof.
Fixed Parameters for RAY Staking Transactions
The fixed parameters below govern every RAY staking deposit and claim, while the live APR and optional priority fee sit outside this durable transaction layer.
Solana caps a transaction at 1,232 bytes, uses 64-byte Ed25519 signatures and accepts a recent blockhash for 150 slots. Raydium also has three farm program generations: v3, v5 and v6. The interface handles that program choice for a normal RAY staking action.
| Parameter | Fixed Value | Where It Matters | Main Failure Mode |
|---|---|---|---|
| Network | Solana mainnet | Every action | Another cluster shows no expected position |
| RAY mint | 4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R | Asset selection | A different mint represents another token |
| RAY precision | 6 decimals | Amount encoding | Excess precision is rounded or rejected |
| Base fee | 5,000 lamports per signature | Transaction submission | Insufficient SOL stops submission |
| Blockhash window | 150 slots | Signing and landing | Expiry requires a fresh transaction |
| Transaction size | 1,232 bytes maximum | Batched instructions | An oversized message must be split |
| Signature | 64-byte Ed25519 | Wallet authorization | A missing signer stops processing |
Use these rows to interpret a failed preview or an expired submission. They don't predict the reward rate, because the active emission stream and total deposited RAY set that live figure.
Submitting a Clean On-Chain Deposit
A clean RAY deposit requires one deliberate sequence: select the amount, inspect the Solana transaction and wait for confirmed state before touching the controls again.
Confirm the Asset and Amount
Start with Available RAY and enter a positive amount no greater than that balance. A true v6 Deposit must exceed 0 base units, while the Raydium interface supplies the correct instruction for older farm versions. Preserve the SOL reserve separately. The amount shown in the wallet should match the amount entered after applying RAY's 6-decimal precision.
Read the Transaction Preview
The preview should identify the connected address as signer, debit its RAY SPL Token account and invoke the farm program. A first deposit may include account creation for the stake ledger. There's no swap in this route, so a staking deposit has no slippage setting or price-impact calculation. The meaningful values are the RAY debit, the SOL cost and the program destination.
Sign Once and Wait for Confirmation
Approve the prepared transaction once, then keep its signature while the network processes it. Solana executes every instruction atomically: the token transfer and ledger update land together, or neither state change remains. If the 150-slot blockhash window expires, build a fresh transaction instead of reusing the old message. Once confirmed, refresh Raydium and compare Available RAY with Staked RAY. That sequence ends with one traceable signature and one updated staked balance.
How Are RAY Rewards Calculated?
In that setup, RAY staking rewards equal the wallet's proportional share of scheduled RAY emissions, with the displayed APR changing when emissions or total staked RAY changes (more on this in Ray walkthrough ).
Seen from the other side, Raydium annualizes one year as 365 days, or 31,536,000 seconds, then applies the configured RAY-per-second stream to that period and divides by total staked RAY. Because the stake and reward share the same token, their price cancels from the token-denominated ratio. The rate still moves: a larger total stake spreads the same emission stream across more RAY, while a changed schedule alters the numerator. Pending rewards use elapsed time and your share during that interval, not the APR shown at the moment you claim.
APR expresses a simple annualized rate and doesn't include compounding. Raydium doesn't automatically fold pending RAY into principal. Claiming and redepositing therefore creates two transactions, two state updates and a compounding cadence chosen by the wallet owner.
Claiming Rewards Without Moving Principal
A RAY reward claim settles pending rewards into the wallet's RAY token account while leaving the deposited principal and its future accrual position unchanged.
Choose the Claim-Only Action
Use the claim control beside Pending rewards when the goal is to move earned RAY without reducing Staked RAY. The interface sends one wallet transaction and selects the underlying settlement path. Farm v6 exposes an explicit Harvest instruction; farm v3 and v5 settle a claim with an amount of 0 behind the SDK abstraction. In either route, principal stays recorded in the farm ledger.
Read the Post-Claim State
After confirmation, Available RAY rises by the transferred reward and Pending RAY drops to the newly accrued remainder. It may already show a small nonzero balance because the next interval begins after settlement. Staked RAY stays unchanged. The program also replaces the prior reward snapshot with the current reward-per-share value, establishing the starting point for the next claim.
Adding claimed RAY back to principal requires another deposit and wallet signature. The extra action lets the holder choose between liquid rewards and a fee-paying manual compounding cadence.
Confirming Deposit and Claim Results On-Chain
A successful RAY transaction has two matching records: the Raydium balance update and a Solana signature whose account changes show the corresponding token movement.
Open the signature in Solscan or Solana Explorer and inspect its status, signer, program invocation and pre-transaction and post-transaction token balances. A deposit shows RAY leaving the signer's token account and entering the staking vault, alongside the farm-ledger update. A claim shows RAY moving from a reward vault to the signer's RAY token account. If the signature is confirmed while Raydium still shows older values, reconnect the same address or refresh its account data before creating another transaction.
Matching both records prevents a stale interface from becoming the final source of position truth.
Unstaking and Partial Withdrawals
A RAY withdrawal returns any amount up to the deposited balance from the farm vault, after the program first settles rewards associated with that stake.
Reduce the Stake
Choose the withdrawal control, enter an amount no greater than Staked RAY and review the destination token account. A partial withdrawal lowers the deposited balance and total farm stake by the same base-unit amount. The remaining RAY stays in the ledger with a refreshed reward snapshot, so its future share begins from the state recorded in that transaction.
Close the Position
A full withdrawal returns the entire deposited RAY balance and settles pending rewards during the same farm interaction. The instruction doesn't create a separate unbonding queue; the principal reaches the wallet when the Solana transaction lands. After confirmation, the interface should show 0 Staked RAY for that position, while Available RAY reflects the returned principal and settled reward.
Reward Accounting Beneath the Raydium Interface
On the operational side, Raydium's reward ledger decides every claim by combining the wallet's deposited amount with a reward-per-share counter and subtracting the snapshot from its previous interaction.
Each wallet has one ledger per farm, holding its deposited amount and reward-debt snapshot. Farm state holds total stake, emission schedules, counters and token vaults, while a Program Derived Address controls those vaults. Farm v6 stores up to 5 reward streams, while v5 supports 2 and v3 supports 1. Its emission rate uses Q64.64 fixed-point arithmetic, so integrations divide the stored value by 2^64. Deposit, Withdraw and Harvest refresh the counter lazily when a transaction touches the farm; no second-by-second transaction is required.
Underneath that, Raydium SDK v2 reads the account owner and dispatches the instruction that matches v3, v5 or v6. SPL Token handles the RAY transfers, while Token-2022 support belongs to v6 for compatible staking and reward mints. This separation explains why a display may refresh after the chain has already settled. A Ray tutorial becomes much easier to audit when every click maps to a specific token movement and a predictable ledger transition.
Popular questions about Ray tutorial
Can I stake RAY from a Ledger hardware wallet?
Yes, a Ledger hardware wallet can authorize RAY staking through a compatible Solana wallet connector such as Phantom or Solflare. The connected address must hold the Solana SPL form of RAY plus SOL for fees. Review the transaction on both interfaces, then approve it on the device. Raydium records the stake against that address, so later claims and withdrawals require the same signing authority.
Can RAY held on a centralized exchange be deposited directly?
RAY held on a centralized exchange can't be deposited into Raydium directly. Raydium staking requires RAY in a self-custodied Solana wallet because that wallet signs the Deposit instruction and owns the associated token account. Withdraw over the Solana network to Phantom, Solflare or Backpack, then retain SOL for fees. The stake becomes available only after the on-chain withdrawal reaches the connected address.
Does a RAY claim automatically compound the position?
No, a claim sends pending RAY to the wallet's RAY token account and leaves the deposited amount unchanged. Increasing principal requires a separate Deposit transaction after the claim settles. That second submission pays its own Solana fee and refreshes the farm's reward snapshot. The split lets the holder keep rewards liquid or choose a manual compounding schedule without changing the existing position during harvest.
May two Solana addresses share one RAY staking position?
No, one Raydium farm ledger maps to one wallet address and one farm, so two addresses maintain separate positions. Each ledger stores its deposited amount and reward snapshot independently. Moving liquid RAY between those wallets doesn't transfer an existing stake. Consolidation requires a withdrawal from the first address, an SPL Token transfer and a new deposit signed by the second address.
Why does changing wallets make the staked balance disappear?
Changing the connected wallet or account points Raydium at a different public address, and each address has its own farm ledger. The original stake remains recorded under the address that signed the deposit. Reconnect that exact Solana account, select the same network and refresh the staking view. A Solscan or Solana Explorer lookup of the deposit signature confirms which signer owns the position.
Are RAY staking rewards paid in SOL or RAY?
RAY single-asset staking pays its scheduled rewards in RAY, not SOL. SOL serves as the fee asset for the deposit, claim and withdrawal transactions on Solana. After a successful claim, the reward transfer lands in the wallet's RAY token account. The wallet's SOL balance falls only by the network fee and any account-creation funding included in that transaction.
Must the original wallet device approve every later claim?
The original physical device isn't mandatory, but every claim must carry a valid signature from the authority that owns the staking ledger. A compatible wallet setup deriving the same Solana address can authorize the transaction. Connecting a different address creates a separate view and can't claim the first address's rewards. Match the public address shown in the original deposit signature before submitting the claim.