冷加注需要两个PIVX钱包:一个用来存储钱(也可以是硬件钱包,不需要一直在线),另一个是热节点钱包,用来加注(需要24/7式在线)。

 为了建立冷加注,您需要执行以下步骤(使用命令行界面CLI或使用图形界面GUI):

 1.从加注着钱包中生成一个“加注地址”(如果还没有)。

2.从所有者钱包中生成一个“所有者地址”(如果还没有)。

3.创建一个“冷加注委托”。

  1. 在您的加注者处列出所有者地址白名单 (如果还没有)。

 要发送更多的委托,使用相同的地址对,只需复制本指南的步骤3。

  

1)从加注者钱包中生成一个“加注地址”

加注地址必须为加注者钱包所有(一个24/7在线并且没有资金的钱包)。

 使用命令行Innerface (CLI)

要从加注钱包获得新的加注地址,请这样操作:

 pivx-cli getnewstakingaddress(获取新加注地址)

 您不需要为每个委托创建一个新的加注地址。您可以重复使用以之前生成的地址。请这样操作罗列出来:

 pivx-cli liststakingaddresses(罗列加注地址)

 使用GUI

 创建一个加注地址,在启用冷加注标签(点击顶部的图标)后,选择加注者- >“创建冷加注地址”:

 



Insert any amount, a label for the address, optionally a description, and click “Generate”:

 

The new address gets visualized, along with a QR-code.
You can either copy the address or the URL to paste it during the delegation (see point n.3).
You don’t need to create a new staking address for each delegation. You can reuse your previously generated addresses. To viem them click “My staking addresses”:

2) Generate an “owner address” from the owner wallet

Owner addresses are regular PIVX addresses. Their private key can be used to redeem delegated coins. Creating an owner address is aking to creating a receiving address. They must belong to the owner wallet (the one that is offline and has ownership of the coins). The owner’s wallet can also be a hardware wallet device or a paper wallet.

CLI
To get a new owner address, from the owner wallet do:
pivx-cli getnewaddress


GUI
To get a new owner address, simply go to the “Receive” tab and click “Generate address”:

You don’t need to create a new owner address for each delegation. You can reuse your previously generated addresses.

3) Create a “cold stake delegation”

This is the main step.
To delegate coins you need to send a special “delegation contract” transaction.

CLI
Specify the staker address, the amount to delegate and (optionally) the owner address:
pivx-cli delegatestake "S1t2a3kab9c8c71VA78xxxy4MxZg6vgeS6" 1000 "DMJRSsuU9zfyrvxVaAEFQqK4MxZg34fk"


If the owner address is omitted, a new address is automatically generated from the wallet.
If you want to delegate to an external address (using an owner address not present in the wallet, e.g. one from a hardware device), then you need to add true at the end of the command (check pivx-cli help delegatestake for more info).

GUI
From the coldstaking widget, click “delegation”.
As with the regular sending operation, you must select an amount and either let the wallet pick the coins, or select them with coin control.
Insert the staker address (or select it from the list of previously used ones), a description, and (optionally) a owner address (again, if not provided, it will be generated automatically).
Then click “Delegate”.

4) Whitelist the owner address on your staker

In order to stake delegations, the owner address must be whitelisted by the staker.

CLI
To whitelist an address (<owneraddress>), from the staker wallet do:
pivx-cli delegatoradd <ownerAddress>


Once a delegator address is whitelisted, it remains so, even for successive delegations.
To remove a particular address from the whitelist, do
pivx-cli delegatorremove <ownerAddress>


To view the current whitelisted addresses, do
pivx-cli listdelegators

GUI
The delegation is visible in the “Staker” tab of the coldstaking widget:
To whitelist the delegator, click on its row and select “Stake” from the contextual menu

To remove the delegator from the whitelist, select “Blacklist” from the contextual menu:

额外RPC函数

这些是可以通过控制台或pivx-cli访问其他JSON-RPC调用。

 更多信息请查看以下帮助。

  • getcoldstakingbalance
  • getdelegatedbalance
  • listcoldutxos

由FURSZY提供的视频

%d 博主赞过: