The xray Core wallet provides online Proof of Stake and can be launched and configured to operate as a Super Staker and receive address delegations.
To configure the xray-Qt wallet for a Super Staker, select Stake – Super Staking and the "+" button to add a new Super Staker. Enter the Staker name (for local reference only, here using the first part of the address and "10" to denote a 10% fee) and select the Staker address using the dropdown.
To operate as a Super Staker, the wallet must be able to check arbitrary addresses (address index), have logs enabled for smart contract operations(log events), be enabled for staking and the single parameter
-superstaking sets these three parameters. The first time launching with
-superstaking the wallet will rescan the blockchain to rebuild the database to add the address index and log events.
Next, the wallet will prompt to be restarted as a Super Staker using Settings – Options – Enable super staking and OK to restart the wallet.
On startup, the wallet will confirm that you want to scan and rebuild the database.
The wallet will show "Reindexing blocks on disk…" and "Syncing Headers" while it rebuilds the database, this may take several tens of minutes depending on your computer.
After launching, go back to the Stake – Super Staking page and select the "Configure super staker" button (the gear symbol will now be visible) to compete the Super Staker configuration. Click the Custom box to see the default recommendations (shown below) or customize the setup. Click OK to complete the setup.
The configuration settings are:
- Minimum fee – the minimum fee offered by delegators that the Staker will accept.
- Minimum UTXO size – this sets the minimum-sized UTXO that will be evaluated for Proof of Stake consensus by the Staker. Over time, the delegated address should accumulate many small block reward UTXOs and it is inefficient to manage all these small amounts (which should be recombined by the delegator).
- Delegation list type:
- Accept all – accept any delegation with the minimum fee or more.
- Allow list – only accept delegations from specific addresses. Use this mode if operating a Super Staker only for specific addresses, such as for your coins.
- Exclude list – addresses to exclude from being accepted for staking.
Next, split the UTXOs to valid amounts for committing stakes by the Super Staker. The UTXOs must be a minimum amount of 100 xray. On the Super staker page select the split coins button (trident icon) and use the default values or make adjustments, but no UTXOs under 100 xray will be used for staking.
You can also split UTXOs with the
splitutxosforaddress command, which can be used for delegated addresses as well. To split the UTXOs between a minimum and maximum value, enter the command:
splitutxosforaddress "address" minValue maxValue ( maxOutputs )
For example, if a wallet held UTXOs of 40, 50, 60, 70, and 800 xray, to split these into UTXOs of a minimum 100 and maximum 200 would use the command:
For this example, the total input was 1,020 xray, and the split was 9 UTXOs of 100.0 and one of 119.99566, the wallet sending a "transaction to self" and paying a fee of 0.00434 xray.
Larger wallets may need to adjust the "Maximum outputs" number for splitting. In the example above with the "Maximum outputs" field set to the default value of 100, the split operation will split giving 100 xray (minimum size) x 100 (Maximum outputs) = 10,000 of UTXO value. For addresses holding more value the "Maximum output" field could be set higher, to 500, or 1000. With the "Maximum outputs" field set to 1000 it can split up to 100,000 in UTXO value. Even bigger addresses could just repeat this split command set for 1000 Maximum outputs until the Split operation reports back that it has selected and split 0 coins.
Previously you could use the
sendmanywithdupes command but that took significant formatting and operationally you would want to send to a new address. Of course, after either of these commands, the UTXOs must mature for 2000 confirmations before they can be used for staking.