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_merging_own_nodes_to_delegation_sc #870

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions docs/validators/staking/merge-validator-delegation-sc.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ You can obtain the HEX format of an address by first converting its bech32 (erd1

2. The Merging Validator sends the merge transaction from the whitelisted wallet:

```rust
To: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6
Value: 0
Gas limit: 510000000
Data: mergeValidatorToDelegationWithWhitelist@<the Delegation SC address in HEX format>
```

```rust
Whitelist Wallet For Merging
Sender: <account address of the node operator>
Expand All @@ -51,3 +44,19 @@ _For more details about how arguments have to be encoded, check [here](/develope
:::caution
We advise against using this method to buy or sell validator slots - it requires the transfer of private keys (validatorKey.pem) which can't be changed. This puts the buyer at risk of slashing, should the seller deploy a node with the same key, either intentionally or by mistake.
:::

## **Merging own node(s)**

If the owner address of the node(s) and Delegation SC is the same use, whitelisting is not needed.

```rust
Merge Own Nodes
Sender: <account address>
Receiver: erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6
Value: 0
Gas Limit: 510000000
Data: "mergeValidatorToDelegationSameOwner" +
"@" "<the Delegation SC address in HEX format>"
```

_For more details about how arguments have to be encoded, check [here](/developers/sc-calls-format)._
Loading