transfer
operation is intended to transfer active tokens to the stake. This operation is executed by the cyber.token
contract. cyber.stake
contract should be specified as a recipient of the funds.user account
— user transferring tokens to a stake.quantity CYBER
— number of tokens being transferred.active key
— user’s active key. cyber.token
contract is reduced by the quantity
. The balance of the user's staked tokens in cyber.stake
contract is increased by the quantity
.alice
transfers 100 CYBER tokens to stake, due to which she can increase her activity on the network. The command is signed with the active key [email protected]
.user account
argument is a recipient of the staked tokens.alice
transfers 100 CYBER tokens to stake for user bob
. In this case, the alice
liquid balance will be reduced by the 100 CYBER. The bob
balance in cyber.stake
contract is increased by 100 staked tokens. The command is signed with the active key [email protected]
.alice
transfers 100 CYBER tokens to stake. Unlike transfer
, this operation does not require an active key signature.alice
transfers 100 CYBER tokens to stake for user bob
. Unlike transfer
, this operation does not require an active key signature.withdraw
operation is intended to withdraw tokens from the stake to active state. This operation is executed by the smart contract cyber.stake
.alice
stake will decrease by 100 CYBER tokens. At the same time, active tokens will be credited to the alice
account balance.delegateuse
operation is intended to transfer part of the stake resources (RAM, NET, CPU, Storage) to another user. However, resources are not directly delegated. Instead of resources, their cost is delegated — number of staked tokens.cyber.stake
.delegator account
— user delegating staked tokens.quantity CYBER
— number of staked tokens.active key
— delegator's active key.Alice
user delegates 10 tokens to userbob
. The operation is signed by the alice
active key.delegatebw
operation can be executed using the specialized cleos command.undelegatebw
operation is intended to return delegated stake. This operation is performed in two stages:recalluse
operation can be executed to revoke a delegated stake:alice
revokes 10 tokens that were delegated to userbob.
The operation is signed by the alice
active key.undelegatebw
can also be executed using the specialized cleos commandclaim
operation can be executed to credit the returned amount of staked tokens to a stake:Note: The differences between delegation and crediting to another user are:
when delegated, the staked tokens are transferred. These tokens can be taken back without the recipient’s signature. when crediting to a stake, the transfer comes from liquid balance.
newaccount
operation is intended to create a user and delegate staked tokens to him/her.--transfer
flag is added to this command line, then staked tokens will be transferred irrevocably to the created account.listbw
operation is intended to obtain a list of users to whom a stake has been delegated