What you can do
| stake-native | Stake SOL natively through Marinade | buildCreateAuthorizedStakeInstructions(user, lamports), sign with the new stake keypair and the user wallet, then send |
| migrate-stake | Move an existing stake account to Marinade Native | buildAuthorizeInstructions(user, [stakeAccount]) changes the stake authority to Marinade |
| unstake-native | Request unstake of Marinade Native stake | initPrepareForRevoke, then callPrepareForRevoke with the signed message, then buildRevokeInstructions after the epoch; withdraw the merged stake account |
| check-rewards | Read rewards on Native stake | fetchRewards(user) through the SDK |
Unstaking has a flat fee and takes effect after the epoch, when the stake is deactivated and merged.
Marinade Native uses stake authorities that are program-derived addresses. Marinade governance can change which authorities are used, per the docs.
Positions split across Max Yield, Select and Recipe stake authorities. Filtering on one authority misses the others, per the docs.
Native stake is not liquid. There is no token, so the position cannot be traded while it is staked.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).Marinade Native Staking Proxy programstaking on solanamnspJQyF1KdDEs5c6YJPocYdY1esBgVQFufM2dY9oDk
write buildCreateAuthorizedStakeInstructions(user, amount)
SDK builder. Creates a new stake account funded with amount lamports, with Marinade set as stake authority. The new stake account keypair must also sign. The SOL is staked from the signer's wallet.
write buildAuthorizeInstructions(user, stakeAccounts)
SDK builder. Migrates existing stake accounts by changing their stake authority to Marinade. Each account must be active and owned by the user.
write initPrepareForRevoke(user, amount)
SDK builder for the first unstake step. Pays the flat unstake fee from the user's wallet and returns the message to sign for the second step.
write callPrepareForRevoke(user, signature, amount)
SDK builder for the second unstake step. Submits the signed message from initPrepareForRevoke so Marinade starts deactivating the user's stake accounts.
write buildRevokeInstructions(user, stakeAccounts)
SDK builder. Returns the instructions that finish the unstake for the given stake accounts so they can be merged and withdrawn after the epoch.
read fetchRewards(user)
SDK call that reads the rewards accrued on a user's Marinade Native stake accounts.