Marinade Widget

An open-sourced, Marinade widget that provides end-to-end swap flow by linking it in your HTML. Check out the visual demo for the various integration modes below.

Marinade renders as a part of your dApp.

Loading...

Things you can configure

Referral code (Optional)

Enter referral code to earn fees

Allow direct stake

Enable to allow user to selected a valiadator to stake directly to

Initial validator

If direct staking is allowed, set a default validator. Otherwise, an automatic strategy is defaulted

Theme

Allowed actions

Customize theme

Simulate wallet passthrough

Simulate Terminal with a fake wallet passthrough

Preferred Explorer

Links to transactions will use this explorer

Code snippet

1window.Marinade.init({
2    "displayMode": "integrated",
3    "integratedTargetId": "integrated-terminal",
4    "endpoint": "https://api.mainnet-beta.solana.com",
5    "stakeMode": "both"
6});