To stake from an account…
-
Authenticate your NEAR wallet with the CLI
-
Using the computer on which you installed the NEAR CLI, log into the NEAR wallet site.
-
Execute the command:
-
Click
Allow in the new tab.
-
Enter your Wallet ID.
-
Click
Confirm.
-
Deposit NEAR to the stakingpool contract
COINBASE VALIDATOR INFORMATION
Validator name: Bison Trails
Staking pool IDs:
bisonstrails.poolv1.near
bisonstrails2.poolv1.near
-
Execute the command using Coinbase’s Staking Pool ID:
bisonstrails.poolv1.near.
near call <bisonstrails.poolv1.near> deposit '{}' --accountId <WALLET_ID> --amount <N>
-
Receive the response:
Log [my_validator.stakingpool]: gbt_admin_testnet deposited 10000000000000000000000000. New unstaked balance is 10000000000000000000000000
-
Stake NEAR to the stakingpool contract
-
Execute the command:
near call <bisonstrails.poolv1.near> stake '{"amount": "N0000000000000000000000000"}' --accountId <WALLET_ID>
-
Receive the response:
Log [my_validator.stakingpool]: gbt_admin_testnet staking 10000000000000000000000000 new staking shares. Total 0 unstaked balance and 10000000000000000000000000 staking shares
Congratulations! You are now staked to a Coinbase validator.
To stake from a lockup contract…
-
Confirm ownership of your lockup contract
-
From Terminal, execute the command:
near view LOCKUP_CONTRACT get_owner_account_id '{}'
-
Match the
owner_account_id to the lockup contract ID associated with that owner ID.
-
Designate the staking pool and deposit NEAR
-
Execute the command:
near call LOCKUP_CONTRACT select_staking_pool '{"staking_pool_account_id": "bisonstrails.poolv1.near"}' --account_id OWNER_ACCOUNT_ID
-
To deposit NEAR, execute the command:
near call LOCKUP_CONTRACT deposit_to_staking_pool '{"amount": "N0000000000000000000000000"}' --accountId OWNER_ACCOUNT_ID --gas=150000000000000
-
Receive
TRUE or FALSE value, along with your transaction receipt and a URL to view your transaction in the explorer.
-
Stake NEAR to the stakingpool contract
-
Execute the command:
near call LOCKUP_CONTRACT stake '{"amount": "N0000000000000000000000000"}' --accountId OWNER_ACCOUNT_ID --gas=150000000000000
-
Receive
TRUE or FALSE value along with your transaction receipt and a URL to view your transaction in the explorer.
Congratulations! You are now staked to a Coinbase validator.