Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add near-validator extension #2493

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

bucanero
Copy link
Collaborator

@bucanero bucanero commented Mar 5, 2025

No description provided.

@trechriron trechriron temporarily deployed to 2377-295-request-for-near-validator-cli-extension-and-documentation-for-near-rust-cli - near-docs PR #2493 March 5, 2025 23:15 — with Render Destroyed
Copy link
Contributor

@denbite denbite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's fix these few minor things and we're ready to merge

<TabItem value="Short">

```sh
near call <my_validator> deposit '{}' --accountId <user-account.near> --deposit 100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no need to take deposit and stake actions apart, as it can be done within a single function call

near staking delegation <user-account.near> deposit-and-stake

<TabItem value="Full">

```sh
near staking delegation <user-account.near> unstake '1 NEAR' <my_validator> network-config mainnet sign-with-keychain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it's worth mentioning, that as an alternative a user can unstake all NEAR tokens at once by calling unstake_all

<TabItem value="Full">

```sh
near staking delegation <user-account.near> withdraw '1 NEAR' <my_validator> network-config mainnet sign-with-keychain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as above, a user can withdraw everything at once
near staking delegation <user-account.near> withdraw-all

@@ -45,6 +45,37 @@ The NEAR [Command Line Interface](https://github.com/near/near-cli-rs) (CLI) is
</TabItem>
</Tabs>

### Validator Extension
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's move the installation guide down to the "Validators" section, as it's the only place on this page where it's actually needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW❗
Development

Successfully merging this pull request may close these issues.

[295] Request for near-validator CLI extension and documentation for NEAR Rust CLI
3 participants