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

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

Option 2: JavaScript library

You can install and import Wallet SDK for Javascript. The link to the JS library on npm: https://www.npmjs.com/package/@everstake/wallet-sdk.

Step. 1: Installing the Library

Install the npm library by copying the command below. Note that some blockchain's Wallet SDKs are published as separate packages. Please refer to the corresponding blockchain's guide for more information.

sh
$ npm install @everstake/wallet-sdk

or you can also use yarn

sh
$ yarn add @everstake/wallet-sdk

Step. 2: Import Wallet SDK

After installing the app, you can import module of needed blockchain (Ethereum, Aptos, Solana, Cosmos, Polygon, Sui 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);