Zeitgeist Staking — Stake #ZTG with Stakenode Collator
Zeitgeist Network just launched their parachain and distributed tokens to crowdloan participants.
You can now check Your #ZTG token balance by logging on https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fzeitgeist-rpc.dwellir.com#/accounts
and connecting with the wallet, You used for Zeitgeist crowdloan.
Zeitgeist also launched staking of the #ZTG token through the polkadot.js app. If You want Your token to work, here is a complete tutorial on how to stake #ZTG with Stakenode Collator.
#ZTG Staking Tutorial with Stakenode Collator
Step1 — Preparations
To successfully proceed with the #ZTG token stake with the polkadot.js app (until there is a staking app launched), You need to get the below data ready:
- Minimum Staking Amount
- Candidate Delegation Count value
- Delegation Count value
To get information from Zeitgeist blockchain needed to set up the staking, please follow the below steps:
- Navigate to the Zeitgeist app on polkadot.js.org, section “Developer/JavaScript”
2. Copy the below text
const collatorWalletAddress = "dDykYaZr7V5krQ5kVk5Wsdt9nfGwo9DtuUN9HA8FVQ9wUQgm8";
const delegatorWalletAddress = "YOUR_WALLET_ADDRESS";
const minDelegationStake = await api.consts.parachainStaking.minDelegation;
const candidateInfo = await api.query.parachainStaking.candidateInfo(
collatorWalletAddress
);
const candidateDelegationCount = JSON.parse(candidateInfo).delegationCount;
const delegatorState = await api.query.parachainStaking.delegatorState(
delegatorWalletAddress
);
const delegationsLength = (delegatorState.toJSON() !== null && delegatorState.toJSON().delegations)
? delegatorState.toJSON().delegations.length
: 0;
console.log(`a. Minimum Amount to be staked: ${minDelegationStake}`);
console.log(`b. Candidate Delegation Count: ${candidateDelegationCount}`);
console.log(`c. Delegation Count: ${delegationsLength}`);
3. Put the copied text into the app window and replace “YOUR_WALLET_ADDRESS” with the Zeitgeist address You want to stake from. Press the “Play” button on the right to generate data.
4. Save the outcome data as You will need them for the next step
Step 2: Stake your #ZTG tokens
- Navigate to the Zeitgeist app on polkadot.js.org, section “Developer / Extrinsic”
- Select “parachainStaking” and “delegate(candidate, amount, candidateDelegationCount, delegationCount)”
3. In the “candidate” field, insert Stakenode Collator Adress:
dDykYaZr7V5krQ5kVk5Wsdt9nfGwo9DtuUN9HA8FVQ9wUQgm8
(“Stakenode — Jimmy Tudeski” is the node name)
4. In the “amount” field, put the #ZTG amount You want to delegate.
(remember to add 10 zeros to the desired amount as You are putting the value in Planck — for example, 1000 #ZTG is 10000000000000)
5. In the “candidateDelegationCount” field, put the number received from the preparation section from javascript data +1.
(if You received “Candidate Delegation Count” in the previous section javascript = 3, then You should put 4 as Your “candidateDelegationCount”)
6. In the “delegationCount” field, also put the number received from the preparation section from javascript data +1
(if You received “Delegation Count” in the previous section javascript = 3, then You should put 4 as Your “candidateCount”)
7. Sign the transaction, and you are all set to receive your first rewards!
To check your staked amount and received rewards, go to the PolkadotJS app in the Accounts tab.
3. How to add / bond more #ZTG to Your stake:
- Navigate to Zeitgeist polkadot.js.app to the “Developer / Extrinsics” section and select “parachainStaking” and “delegatorBondMore(candidate, more)”
- Put Stakenode Collator address in the “candidate” field:
dDykYaZr7V5krQ5kVk5Wsdt9nfGwo9DtuUN9HA8FVQ9wUQgm8 - Add desired #ZTG amount (remember to add 10 zeros to the desired amount), sign the transaction, and there it is.
Now You are set with Your $ZTG tokens staking. If You find this tutorial valuable, You can support Stakenode collator and Validator on other parachains and Kusama Relay Chain.
Let’s build web3 and Dotsama ecosystem together!