Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

near_test

Small console application to check the staking rewards for lockup accounts on NEAR protocol

Example result:

near_reward result example

Prerequisites

This utility requires Rust. To install, run:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

(Official documentation)

Follow the directions which includes running:

source $HOME/.cargo/env

Usage

  1. Create a near_rewards folder inside your home directory.

  2. In near_rewards create a file accounts.json with the following structure:

[
  {
    "account_id": "account.near",
    "pool_account_id": "pool.poolv1.near"
  }
]

OR

[
  {
    "account_id": "account.lockup.near",
    "key": "ed25519:FQxoGzhKW129Vq8Uk8WqeSV1e8z3oJFMC1UbN6z6yBHT"
  }
]

Note: This tool only works for lockup accounts.

The tool works for any account in NEAR

  1. Run cargo install --git https://github.com/khorolets/near_rewards in your terminal.
  2. Run near-rewards in your terminal.

About

No description, website, or topics provided.

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages