IkigaiLabsETH / -Marinade-TS-SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marinade

liquid-staking-referral-app

This is a simple React app which showcases the usage of Marinade TS SDK to help you build your own applications based on Marinade!

This application can be tested here (devnet)!

Installation and usage

  1. Clone the repo and install dependencies
git clone git@github.com:marinade-finance/liquid-staking-referral-app.git
cd liquid-staking-referral-app
npm run install
  1. Set the Referral Code in src/components/marinade/MarinadeProvider.tsx so the code reads as:
...
const referralCode = new web3.PublicKey('<<YOUR REFERRAL CODE>>')
const config = new MarinadeConfig({ connection, publicKey, referralCode })
const marinade = new Marinade(config)
...
  1. Run it:
npm run dev

Now a new tab in your browser should be opened with the example app loaded.

Learn more

About


Languages

Language:TypeScript 79.4%Language:CSS 13.7%Language:JavaScript 5.6%Language:HTML 1.2%