Developer Documentation#
Integrate Marinade staking into your Solana application using our TypeScript SDK or REST APIs.
| Resource | Description |
|---|---|
| SDK | @marinade.finance/marinade-ts-sdk |
| Native SDK | @marinade.finance/native-staking-sdk |
| APIs | REST endpoints for data queries |
| Programs | Open source on GitHub |
Integration Options#
| Method | Use Case | Complexity |
|---|---|---|
| TypeScript SDK | Full-featured programmatic access | Medium |
| REST APIs | Backend integrations, data queries | Low |
| Direct Program | On-chain composability | High |
Quick Example#
stake.ts
import { Marinade, MarinadeConfig } from '@marinade.finance/marinade-ts-sdk';
import { Connection, PublicKey } from '@solana/web3.js';
// Initialize
const config = new MarinadeConfig({
connection: new Connection('https://api.mainnet-beta.solana.com'),
publicKey: new PublicKey('YOUR_WALLET_ADDRESS'),
});
const marinade = new Marinade(config);
// Deposit SOL and receive mSOL
const { transaction } = await marinade.deposit(1_000_000_000); // 1 SOL in lamports
Resources#
-
TypeScript SDK
Full SDK documentation with examples for liquid and native staking.
-
REST APIs
Query staking data, validator info, and more via HTTP endpoints.
-
Contract Addresses
All Marinade program IDs, token addresses, and API endpoints.
-
GitHub
Source code, examples, and CLI tools.
Program Addresses#
| Program | Address |
|---|---|
| Liquid Staking | MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD |
| Native Staking | NAtiSToLkRkBhxFGcFVJg1Nby8RRLC6qKvjwM4zs5gC |
| Program | Address |
|---|---|
| Liquid Staking | MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD |
| Native Staking | NAtiSToLkRkBhxFGcFVJg1Nby8RRLC6qKvjwM4zs5gC |
FAQ#
Which SDK should I use?
- Liquid staking: Use
@marinade.finance/marinade-ts-sdk - Native staking: Use
@marinade.finance/native-staking-sdk - Both can be used in the same project if needed.
Is there a testnet/devnet deployment?
Yes! All Marinade programs are deployed on devnet with the same addresses. See Contract Addresses for devnet API endpoints.
How do I earn referral fees?
See our Referral Program - earn a share of staking fees when users stake through your integration.
Support#
- Discord: discord.gg/marinade - #dev-support channel
- GitHub Issues: marinade-ts-sdk/issues
Next Steps#
| Action | Link |
|---|---|
| SDK Guide | TypeScript SDK |
| API Reference | REST APIs |
| Contract Addresses | Contracts |
| Earn with Referrals | Referral Program |