@everstake/wallet-sdk
Version:
Everstake Wallet SDK for Javascript
73 lines (46 loc) • 1.61 kB
Markdown
You can use two different options to implement staking for Everstake validator.
You can use REST API to call methods which are described in [Swagger](https://wallet-sdk-api.everstake.one/swagger/) with detailed examples
```
https://wallet-sdk-api.everstake.one
```
You can install and import Wallet SDK for Javascript/TypeScript.
Install the npm library by copying the code below.
```sh
$ npm install @everstake/wallet-sdk
```
or you can also use yarn
```sh
$ yarn add @everstake/wallet-sdk
```
or you can use pnpm
```sh
$ pnpm add @everstake/wallet-sdk
```
After installing the app, you can import module of needed blockchain (Ethereum, Solana are available) and use the SDK:
#### Import ES6
```ts
// import modules
import { Ethereum, Solana } from '@everstake/wallet-sdk';
// import needed functions
import { CreateToken, GetAssets } from '@everstake/wallet-sdk';
// import needed constants
import { EthConstants, SolConstants } from '@everstake/wallet-sdk';
```
```ts
// import modules
const { Ethereum, Solana } = require('@everstake/wallet-sdk');
// import needed functions
const { CreateToken, GetAssets } = require('@everstake/wallet-sdk');
// import constants
const { EthConstants, SolConstants } = require('@everstake/wallet-sdk');
```
If you have any questions, issues, or feedback, please file an issue
on [GitHub](https://github.com/everstake/wallet-sdk/issues).