need to generate node-key (corresponding peer-id) ,command is
bifrost key generate-node-key
# this is just example, you must generate your only-one node-key
12D3KooWHhmkowJ4hNT1BUXDV1vuvLj49JdjMUfwJyFSniM3qu1k # peer-node-key
902bbfd87bf7cc7b639095e8a7dc73462fb6a04f10a8c38b0f49b10abd8f5a71 # node-key for command args
// Simple script to get candidate pool size
const candidatePool = await api.query.parachainStaking.candidatePool();
console.log(`Candidate pool size is: ${candidatePool.length}`);
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
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.
Bifrost Mainnet:
Download Chain Spec
Run a Collator Node
before start node
need to generate node-key (corresponding peer-id) ,command is
bifrost key generate-node-key
# this is just example, you must generate your only-one node-key
12D3KooWHhmkowJ4hNT1BUXDV1vuvLj49JdjMUfwJyFSniM3qu1k # peer-node-key
902bbfd87bf7cc7b639095e8a7dc73462fb6a04f10a8c38b0f49b10abd8f5a71 # node-key for command args
// Simple script to get candidate pool size
const candidatePool = await api.query.parachainStaking.candidatePool();
console.log(`Candidate pool size is: ${candidatePool.length}`);
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
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.
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 :
Bifrost chain spec:
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 :