-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vadym Mozharivsky
committed
Jan 9, 2025
1 parent
3153aca
commit 31afc21
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,61 @@ | ||
# Everstake Wallet SDK - Berrachain | ||
|
||
## 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/swagger/) with detailed examples | ||
|
||
``` | ||
https://wallet-sdk-api.everstake.one | ||
``` | ||
|
||
## Option 2: TypeScript library | ||
|
||
You can install and import Wallet SDK for Javascript/TypeScript. | ||
|
||
### Step. 1: Installing the Library | ||
|
||
Install the npm library by copying the code below. | ||
|
||
```sh | ||
$ npm install @everstake/wallet-sdk-berrachain | ||
``` | ||
|
||
or you can also use yarn | ||
|
||
```sh | ||
$ yarn add @everstake/wallet-sdk-berrachain | ||
``` | ||
|
||
or you can use pnpm | ||
|
||
```sh | ||
$ pnpm add @everstake/wallet-sdk-berrachain | ||
``` | ||
|
||
### Step. 2: Import Wallet SDK | ||
|
||
After installing the app, you can import module Berrachain and use the SDK: | ||
|
||
#### Import ES6 | ||
|
||
```ts | ||
// import modules | ||
import { Berrachain } from '@everstake/wallet-sdk-berrachain'; | ||
``` | ||
|
||
#### Import ES5 | ||
|
||
```ts | ||
// import modules | ||
const { Berrachain } = require('@everstake/wallet-sdk-berrachain'); | ||
|
||
``` | ||
|
||
## Questions and Feedback | ||
|
||
If you have any questions, issues, or feedback, please file an issue | ||
on [GitHub](https://github.com/everstake/wallet-sdk/issues). |