Worker Self Staking
Tutorial on using VideoCoin staker tool
VideoCoin workers can participate in transcode mining by self staking a minimum amount of their tokens. The transcoding work is distributed to workers in proportion to the total stake on each worker. The total stake of a worker includes the self stake and delegated stake by one or more delegators. The self stake can be withdrawn. However the VID tokens are transferred to the holder's account after expiry of the unbonding time which is currently set at 21 days.
Staking and withdraw can be performed through a command line tool that is currently supported on Linux platforms. Follow the below steps:
Download the command line tool staker (Contact VideoCoin support for the download link)
Sets up a configuration file in the format of Ethereum key store file that contains private key and public key (password protected).
Run the self stake or withdraw commands as shown in the following sections.
Setup
The staker tool needs to communicate with the Ethereum mainnet to access VID tokens. You can use a free or paid subscription from Infura to access Ethereum through web interace. Please visit the Infura website (https://infura.io/product) and obtain a your ID and make it available to the staker tool using an environment variable as follows.
Prepare an Ethereum key file that contains your private key in encrypted form. Following is a sample key file
Self Staking Process
Before using the staker tool to self-stake the VID tokens, first step is to move erc-20 VID tokens form Ethereum main net to VideoCoin network. Then you can stake VID tokens as as described below. Use the following command to transfer VID tokens from Ethereum main net to VideoCoin network to use as transaction fee/gas:
Use the following command to self stake VID tokens:
Example usage of the commands
Transfer VID tokens from Ethereum main net to VideoCoin network
Self stake VID
Withdraw Process
Currently withdraw is two step process. The fist step is issue a withdraw request(unbonding request). The second step is wait for unbonding period to elapse and issue a command to complete withdraw. Then native VID from VideoCoin network and trnasfer to ERC-20 VID tokens on Ethereum main net.
Use the following command to issue withdraw request:
The withdrawn stake is deposited to worker's account only after expiry of unbonding period
Use the following command to complete pending unbonding request that transfer staked tokens to native VID:
Use the following command to check the staking balance
Transfer native VID from VideoCoin network to ERC-20 VID tokens on Ethereum main net.
Last updated