Run a Collator
Bifrost Mainnet:
https://polkadot.js.org/apps/?rpc=wss://hk.p.bifrost-rpc.liebi.com/ws#/explorer
Download Chain Spec
Bifrost chain spec: bifrost-polkadot.json
Run a Collator Node
before start node
need to generate node-key (corresponding peer-id) ,command is
strart node
Set SessionKey
Generate SessionKey
Set SessionKey
Get the Size of the Candidate Pool
First, you need to get the candidatePool
size (this can change through governance) as you'll need to submit this parameter in a later transaction. To do so, you'll have to run the following JavaScript code snippet from within Polkadot.js:
Head to the Developer tab, select JavaScript from the dropdown, and take the following steps:
Copy the code from the previous snippet and paste it inside the code editor box. (Optional) Click the save icon and set a name for the code snippet, for example, "Get candidatePool size". This will save the code snippet locally
To execute the code, click on the run button
Copy the result, as you'll need it when joining the candidate pool
Apply for Candidate
extrinsic
parameters:
bond: candidate bonding amount 5,000,000,000,000,000 (5,000 BNCs)
candidateCount: existing candidate amount
event
If the total amount of Total Bonded is in the top 16, after 2 rounds, the new Collator can start to generate blocks and receive rewards.
Last updated