Small console application to check the staking rewards for lockup accounts on NEAR protocol
This utility requires Rust. To install, run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shFollow the directions which includes running:
source $HOME/.cargo/env-
Create a
near_rewardsfolder inside your home directory. -
In
near_rewardscreate a fileaccounts.jsonwith 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
- Run
cargo install --git https://github.com/khorolets/near_rewardsin your terminal. - Run
near-rewardsin your terminal.
