Skip to content
On this page

Getting Started

You can use two different options to implement staking for Everstake validator.

Option 1: REST API

You can use REST API to call methods which are described in Swagger with detailed examples (both v1 and v2 are supported).

https://wallet-sdk-api.everstake.one

Option 2: JavaScript library

You can install and import Wallet SDK for Javascript.

⚠️ Choose the version according to the Solana version you're working with:

@everstake/wallet-sdk-solana@^1.x.x — for Solana v1

@everstake/wallet-sdk-solana@^2.x.x — for Solana v2

Step. 1: Installing the Library

Install the npm library by copying the code below.

sh
$ npm install @everstake/wallet-sdk-solana

or you can also use yarn

sh
$ yarn add @everstake/wallet-sdk-solana

Step. 2: Import Wallet SDK

After installing the app, you can import module of needed blockchain (Ethereum, Aptos, Solana, Cosmos, Polygon are available) and use the SDK:

Import ES6

ts
// import module
import { Solana } from "@everstake/wallet-sdk-solana";

Import ES5

ts
// import module
const { Solana } = require("@everstake/wallet-sdk-solana");

// Select network: "mainnet-beta" | "devnet"
const network = "mainnet-beta";

// Create SDK instance
const solanaClient = new Solana(network);