LogoLogo
HomeDappGithub
  • 🌈What is Bifrost
    • Bifrost vs Others
    • Bifrost cross-chain architecture
    • Bifrost security model
  • 🧬Tokenomics 2.0
    • Overview
    • Protocol Growth Flywheel
    • Core - bbBNC
      • How to get or redeem?
    • BNC
    • vBNC
    • Treasury
  • 📚FAQ
    • Glossary
    • What are vTokens?
      • vETH
      • vKSM
      • vDOT
      • vFIL
      • vGLMR & vMOVR
      • vMANTA
      • vASTR
      • Validator Governance
      • XCM V3 in Bifrost
      • Mint/Redeem vToken without Dapp
    • What is LoopStake?
      • LoopStake Lending Parameters
    • What is LST Governance?
    • What is LST Stable Swap?
  • 🏃Dapp Tutorials & use cases
    • Liquid Staking on Bifrost
    • Liquid Staking on Omni LS
    • Loop Stake (Leverage Staking)
    • Governance with vDOT & vKSM
    • Providing Liquidity on DEX/Perp DEX
    • Supplying Liquidity on Money Market
    • Yield DCA
    • Farming
    • Unstaking
  • 🦸For the Community
    • Ambassadors
    • Governance
      • Overview
      • Proposal Guidelines (polkadot.js)
      • Proposal Guidelines (Subsquare)
      • OpenGov Components
      • OpenGov Tracks
        • Root
        • WhitelistedCaller
        • Liquid Staking
      • Proposal Template
        • HRMP
        • Validator Boost List
      • Bifrost Fellowship
      • On-chain Identity
    • Rainbow Boost
  • ⚒️For Builders
    • Build with SLPx
      • Overview
      • Supported Networks
        • Soneium
        • Astar
        • Manta Pacific
        • Moonbeam
        • Moonriver
        • Ethereum
      • XCM Oracle
    • vToken APIs
    • Builder Programs
      • Grants and Funding Program
      • Open Bounties
      • Bug Bounty
  • 🧩For Partners
    • Reward-Share Program (RSP)
      • Why RSP?
      • Integrate RSP
      • Claim RSP Rewards
      • Terms & Conditions
      • FAQ
    • Join The Program
    • Validator Boost List (VBL)
  • ⚖️For Collators
    • Requirement
    • Run a Collator
    • Stop Collating
  • 📦Resources
    • Tools
    • Audit Report
    • Press Kit
    • Token Icon
Powered by GitBook
On this page

Was this helpful?

  1. For Collators

Run a Collator

PreviousRequirementNextStop Collating

Last updated 5 months ago

Was this helpful?

Bifrost Mainnet:

Download Chain Spec

  • Bifrost 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

strart node

/path/to/bifrost \
--collator \
--chain </path/to/bifrost-polkadot.json> \
--base-path <DATA_PATH> \
--node-key <YOUR_NODE_KEY> \
--ws-port=9944 \
--port=30333 \
--prometheus-external \
--state-cache-size 0 \
-- \
--chain polkadot 

Set SessionKey

Generate SessionKey

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://COLLATOR_IP:9933

Set SessionKey

Get the Size of the Candidate Pool

// 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:

  1. 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

  2. To execute the code, click on the run button

  3. 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.

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

strart node

/path/to/bifrost \
--collator \
--chain </path/to/bifrost-kusama.json> \
--base-path <DATA_PATH> \
--node-key <YOUR_NODE_KEY> \
--ws-port=9944 \
--port=30333 \
--prometheus-external \
--state-cache-size 0 \
-- \
--chain kusama \
--execution wasm

Set SessionKey

Generate SessionKey

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://COLLATOR_IP:9933

Set SessionKey

Get the Size of the Candidate Pool

// 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:

  1. 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

  2. To execute the code, click on the run button

  3. 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.

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 :

⚖️
https://polkadot.js.org/apps/?rpc=wss://hk.p.bifrost-rpc.liebi.com/ws#/explorer
bifrost-polkadot.json
Bifrost Binary
Bifrost Source Code
Polkadot.js
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fus.bifrost-rpc.liebi.com%2Fws#
bifrost-kusama.json
Bifrost Binary
Bifrost Source Code
Polkadot.js