BTB
/

Marinade Native

Stakingwebsite
Marinade's native staking product. Users keep their SOL in their own Solana stake accounts, and Marinade is set as the stake authority so it can manage delegation. No token is issued. An agent can create a Marinade Native stake account, migrate an existing one, request an unstake, and read rewards with the SDK.

What you can do

stake-nativeStake SOL natively through MarinadebuildCreateAuthorizedStakeInstructions(user, lamports), sign with the new stake keypair and the user wallet, then send
migrate-stakeMove an existing stake account to Marinade NativebuildAuthorizeInstructions(user, [stakeAccount]) changes the stake authority to Marinade
unstake-nativeRequest unstake of Marinade Native stakeinitPrepareForRevoke, then callPrepareForRevoke with the signed message, then buildRevokeInstructions after the epoch; withdraw the merged stake account
check-rewardsRead rewards on Native stakefetchRewards(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.