- How to Run A Fullnode on Binance Smart Chain
- Fullnodes Functions
- Supported Platforms
- Minimum Requirements
- Fullnode
- Validator
- Suggested Requirements
- Fullnode
- Validator
- Settings
- Common Problems With Connectivity
- Chaindata Snapshot
- Sync Mode
- Steps to Run a Fullnode
- Binance Smart Chain
- What is Binance Smart Chain?
- Why is Binance Smart Chain designed as a separate chain from Binance Chain?
- How does Binance Smart Chain work? What is the architecture and consensus used?
- Can you tell more about Proof of Staked Authority(PoSA)? What is it?
- What are the benefits for developers to build on Binance Smart chain?
- What are the benefits for developers to build on Binance chain?
- How many assets are issued on Binance chain?
- What make Binance Smart Chain different?
- Binance Smart Chain is EVM-compatible. What does that mean?
- Can developers make hybrid Dapps using both Binance Chain and Binance Smart Chain in one single Dapp?
- How to query the current system parameters
- How to join Binance Smart Chain as Validator?
- Before You Start
- Choose Your Validator hardware
- Setup a Validator Node at Testnet
- Create Consensus Key
- Start Validator Node
- Get Testnet Token from Faucet
- Declare Your Candidacy
- Setup a Mainnet Validator
- 1. Install BSC Fullnode
- 2. Write genesis state locally
- 3. Create Consensus Key
- Start Validator Node
- Wait for node to sync
- Setup a data backup (recommended for the mainnet)
- 5. Declare Candidacy
- After Declare Your Candidacy
- 1.Monitor node status
- 2. Update validator prodile
- 3. Publish Validator Information
- 4. Stop Validating
- Types of Nodes
- Full Node Node Roles
- What is a Validator Node?
- What is a Witness Node?
- What is an Accelerated Node?
- A Quick Guide to BNB Staking on Binance Smart Chain (BSC)
- Introduction
- What is a Binance Smart Chain (BSC) validator?
- What is a Binance Smart Chain (BSC) delegator?
- Should I become a delegator on Binance Smart Chain (BSC)?
- How to become a validator on Binance Smart Chain (BSC)
- How to become a delegator on Binance Smart Chain (BSC)
- Closing thoughts
How to Run A Fullnode on Binance Smart Chain
Fullnodes Functions
- Stores the full blockchain history on disk and can answer the data request from the network.
- Receives and validates the new blocks and transactions.
- Verifies the states of every accounts.
Supported Platforms
We support running a full node on Mac OS X and Linux .
Minimum Requirements
The hardware must meet certain requirements to run a node.
Fullnode
- VPS running recent versions of Mac OS X or Linux.
- 1T GB of free disk space, solid-state drive(SSD).
- 8 cores of CPU and 16 gigabytes of memory (RAM).
- A broadband Internet connection with upload/download speeds of at least 1 megabyte per second
Validator
- VPS running recent versions of Mac OS X or Linux.
- 1T GB of free disk space, solid-state drive(SSD).
- 8 cores of CPU and 16 gigabytes of memory (RAM).
- A broadband Internet connection with upload/download speeds of at least 1 megabyte per second
Suggested Requirements
Fullnode
- VPS running recent versions of Mac OS X or Linux.
- 1T GB of free disk space, solid-state drive(SSD).
- 8 cores of CPU and 32 gigabytes of memory (RAM).
- A broadband Internet connection with upload/download speeds of 5 megabyte per second
Validator
- VPS running recent versions of Mac OS X or Linux.
- 2T GB of free disk space, solid-state drive(SSD).
- 8 cores of CPU and 32 gigabytes of memory (RAM)
- Suggest m5zn.2xlarge instance type on AWS, or c2-standard-8 on Google cloud.
- A broadband Internet connection with upload/download speeds of 10 megabyte per second
Settings
Common Problems With Connectivity
Sometimes you just can’t get synced. The most common reasons are as follows:
You have started geth without the discovery protocol, you can set the —nodiscover parameter to False . You only want this if you are running full node with fixed nodes.
Geth also supports a feature called static nodes if you have certain peers you always want to connect to. Static nodes are re-connected on disconnects. You can configure permanent static nodes by putting something like the following into /geth/static-nodes.json :
You can also add static nodes at runtime via the js console using admin.addPeer():
Geth supports trusted nodes that are always allowed to reconnect, even if the peer limit is reached. They can be added permanently via a config file /geth/trusted-nodes.json or temporary via RPC call.
Chaindata Snapshot
Please download the chain data snapshot and extract to your home folder to speed up
Sync Mode
The default sync mode. Synchronizes a full node doing a fast synchronization by downloading the entire state database, requesting the headers first, and filling in block bodies and receipts afterward. Once the fast sync reaches the best block of the Binance Smart Chain network, it switches to full sync mode.
Synchronizes a full node starting at genesis, verifying all blocks and executing all transactions. This mode is a bit slower than the fast sync mode but comes with increased security.
Steps to Run a Fullnode
1.Build from source code
Make sure that you have installed Go 1.13+ and have added GOPATH to PATH environment variable
or you can download the pre-build binaries from release page or follow the instructions below:
Источник
Binance Smart Chain
What is Binance Smart Chain?
Binance Smart Chain brings EVM-compatible programmability and native cross-chain communication with Binance Chain using an innovative consensus of Proof of Staked Authority(PoSA)
Why is Binance Smart Chain designed as a separate chain from Binance Chain?
The execution of a Smart Contract may slow down the exchange function and add non-deterministic factors to trading. Even if that compromise could be tolerated, it might be a straightforward idea to introduce a new Virtual Machine specification based on Tendermint, based on the current underlying consensus protocol and major RPC implementation of Binance Chain. But all these will increase the learning requirements for all existing dApp communities, and will not be very welcomed.
How does Binance Smart Chain work? What is the architecture and consensus used?
Binance Smart Chain relies on a system of 21 validators with Proof of Staked Authority (PoSA) consensus that can support short block time and lower fees.
There will be fewer validators on Binance Smart Chain testnet.
Can you tell more about Proof of Staked Authority(PoSA)? What is it?
PoSA is a combination of PoA and PoS. Blocks are produced by a limited set of validators, they are elected in and out based on a staking based governance. Validators take turns to produce blocks in a PoA manner
What are the benefits for developers to build on Binance Smart chain?
- EVM-compatible: Binance Smart Chain supports all the existing Ethereum tooling Fast block time, cheaper cost
- Native cross-chain trasfer & communication: Binance DEX remains a liquid venue of exchange of assets on Binance Chain and Binance Smart Chain»
What are the benefits for developers to build on Binance chain?
Binance Chain opens the gate for users to take advantage of the fast transferring and trading
How many assets are issued on Binance chain?
There are already 140 assets on Binance Chain
The introduction of BEP8 is an innovative way for tokenization of properties
What make Binance Smart Chain different?
Native Cross-Chain Communication
Expand the use cases of BNB token
Binance Smart Chain is EVM-compatible. What does that mean?
EVM means Ethereum Virtual Machine. Any smart-contract written to run in EVM can be easily ported to Binance Smart Chain.
Can developers make hybrid Dapps using both Binance Chain and Binance Smart Chain in one single Dapp?
Yes, with the help of native cross-chain functions
How to query the current system parameters
minimium delegate amount: 1BNB
Источник
How to join Binance Smart Chain as Validator?
Before You Start
Choose Your Validator hardware
- VPS running recent versions of Mac OS X or Linux.
- 2T GB of free disk space, solid-state drive(SSD).
- 8 cores of CPU and 32 gigabytes of memory (RAM)
- Suggest m5zn.2xlarge instance type on AWS, or c2-standard-8 on Google cloud.
- A broadband Internet connection with upload/download speeds of 10 megabyte per second
Setup a Validator Node at Testnet
If you are running a node in Testnet, 2CPU/8GB of RAM is sufficient.
Install BSC Fullnode
you can download the pre-build binaries from release page or follow the instructions here to set up a full node.
Download the config files
Download genesis.json and config.toml by:
Launch your node and wait for it to get synced.
Create Consensus Key
You need to create an account that represents a validator’s consensus key. Use the following command to create a new account and set a password for that account:
Start Validator Node
Please do not expose your RPC endpoints to public network.
Get Testnet Token from Faucet
You can get testnet BNB from https://testnet.binance.org/faucet-smart, but the BNB is on Binance Smart Chain.
Download tbnbcli from GitHub. Use tbnbcli to create an account or recover an account.
You can follow the guide to transfer BNB from BSC testnet to BC testnet.
Declare Your Candidacy
Use tbnbcli to create an account or recover an account, make sure the account get more than 10000 BNB.
Before sending create-validator transaction, make sure your bsc validator have already catched up.
Example on testnet
Go to explorer to verify your transactions.
Check your validator’s status at this page
Setup a Mainnet Validator
1. Install BSC Fullnode
you can download the pre-build binaries from release page or follow the instructions here to set up a full node.
Download the config files
Download genesis.json and config.toml by:
2. Write genesis state locally
You could see the following output:
3. Create Consensus Key
You need to create an account that represents a validator’s consensus key. Use the following command to create a new account and set a password for that account:
Please do not share access to keystore to others.
This command will return the public address and the path to your private key. BACKUP of keyfile is necessory!
If you already have an account, use the seed phrase to recover it:
Start Validator Node
Please do not expose your RPC endpoints to public network.
Wait for node to sync
Your node should now be catching up with the network by replaying all the transactions from genesis and recreating the blockchain state locally. This will take a long time, so make sure you’ve set it up on a stable connection so you can leave while it syncs.
View the status of the network with https://bscscan.com/.
You can monitor the status from log: $HOME/node/bsc.log by default.
Congratulations! You’ve now successfully joined a network as a full node operator.
Setup a data backup (recommended for the mainnet)
If you are connecting to an existing network for which you have a data backup (from a provider you trust), you can optionally load the backup into your node storage rather than syncing from scratch. Learn more here
5. Declare Candidacy
You can use bnbcli binary to sen create-validator transaction, thus you can declare your candidacy.
Use bnbcli to create an account or recover an account, make sure the account get more than 10000 BNB.
Make sure your bsc validator have already catched up.
Command for create validator on mainnet:
Make sure that the side-cons-addr is the address you unlock when start the validator node.
Read the detailed manual here to understand other parameters.
Go to explorer to verify your transactions.
After Declare Your Candidacy
1.Monitor node status
To get started quickly, run GethExporter in a Docker container.
2. Update validator prodile
3. Publish Validator Information
This repository is a place for validator candidates to give potential delegators a brief introduction about your team and infrastructure, and present your ecosystem contributions.
4. Stop Validating
You can stop mining new blocks by sending commands in geth console
Источник
Types of Nodes
Full Node Node Roles
There are two types of Full Nodes in Binance Chain network: validator nodes and witness nodes.
What is a Validator Node?
Validators are a group/IT infrastructure that take the responsibility to maintain the Binance Chain/DEX data and validate all the transactions. They join the consensus procedure and vote to produce blocks. The fees are collected and distributed among all validators. You can consider Validator as «miner» in Bitcoin and Ethereum and similar concepts exist in dPoS blockchain as EOS or dBFT in NEO. The initial validators are selected from trusted members of the Binance community, and will eventually expand to more members as the Binance blockchain and ecosystem matures, this responsibility will be distributed. The decentralized governance procedure will be introduced and executed. More qualified organization/individual can become Validators.
What is a Witness Node?
Witness nodes represent the majority of nodes in a Binance Chain deployment. Although they do not join the consensus process and produce blocks, they take care of:
- The witness consensus process.
- They serve as data replicas and help to propagate the chain state around the network.
- They receive transactions and broadcast them to all other nodes including Validator nodes.
You can see the witness node information from this endpoint: https://dex.binance.org/api/v1/peers
For mainnet, there are some witness nodes.
- http://dataseed1.binance.org/
- http://dataseed2.binance.org/
- http://dataseed3.binance.org/
- https://dataseed4.binance.org/
For testnet, there are some witness nodes.
- https://data-seed-pre-0-s3.binance.org/
- https://data-seed-pre-1-s3.binance.org/
- https://data-seed-pre-2-s3.binance.org/
To see the existing RPC endpoints provided by witness node, check the list here!
What is an Accelerated Node?
While users can submit transactions and most of the queries via normal, self-run full nodes.
Accelerated Node provides more secure and faster lines to access Binance Chain.
Accelerated Node is special infrastructure built around Validator to facilitate accelerated transaction routing and provide richer, faster user interfaces. There are always several Accelerated Nodes running at the same time around the world (owned by different organizations) and you are encouraged to choose one of them to use, or allow your Wallet choose one randomly.
For rapid API access, you’d better stay with one Accelerated Node to get better performance.
For mainnet, there are more accelerated nodes.
- dex-atlantic.binance.org
- dex-asiapacific.binance.org
- dex-european.binance.org
For testnet, there are 2 accelerated nodes setup as below. API users should try to use them directly.
To see the existing endpoints provided by Accelerated node, check the list here!
Источник
A Quick Guide to BNB Staking on Binance Smart Chain (BSC)
TL;DR
Binance Smart Chain lets you enjoy borderless DeFi infrastructure for low fees. It’s powered by a set of 21 community validators that process transactions, provide computing power and hardware, and maintain network security. In return, they receive rewards from transaction fees and BNB staking.
Would you also like to contribute to the growth of BSC and earn a reward for it? Anyone who’s a holder of BNB can do that by simply staking BNB as a delegator. Let’s see how it works and how you can participate.
Introduction
With that said, building an ecosystem and community of projects, infrastructure, developers, tooling, and users isn’t an easy feat. It’s what makes crypto so powerful, and it’s also what can make open-source software a type of common good.
The goal of community validators is to grow BSC into a bigger and more accessible ecosystem. So what does this actually mean, and how can you participate?
What is a Binance Smart Chain (BSC) validator?
Validators take turns to produce blocks. They essentially power the BSC network by processing transactions and signing blocks. In return for their service, they earn a reward in BNB tokens. Meanwhile, they also require daily re-election by staking governance to be able to continue to be part of the validator set.
What is a Binance Smart Chain (BSC) delegator?
Becoming a validator is not for everyone, so how can you participate as a regular user?
You can become a delegator and stake your BNB to validator candidates through one of the supported wallets. Through staking, you can choose your preferred validator and help them achieve the minimum stake required by the protocol.
Should I become a delegator on Binance Smart Chain (BSC)?
Well, the choice is up to you. By becoming a delegator, you’re delegating your stake to your preferred validator. You are also trusting them to vote on governance decisions on your behalf. Wait, there are also governance rights to BNB? Yes. Validators can govern certain network features of BSC, such as adjusting gas prices, changing system parameters, or even upgrading the blockchain.
By delegating, you also increase the validator’s stake in the overall reward pool. As both of you benefit from joining forces, both of you earn a reward. In February 2021, the average daily staking reward for a BSC validator was 134 BNB. Meanwhile, the average APR for BSC delegators was 60%.
While economic incentives are great and make the world go round, being a delegator isn’t only about the returns. By becoming a delegator, you are directly supporting the operation and security of BSC.
How to become a validator on Binance Smart Chain (BSC)
So you’ve decided you’re going to reach for the stars and become a BSC validator. What do you need to do?
To become a validator on BSC, you need to fulfill these requirements:
This will allow you to get on the validator candidate list and potentially attract more delegators to stake (delegate) their BNB to your validator.
As of March 2021, the top 21 elected validators all have more than 150,000 BNB staked, so you’ll have plenty of competition (which is good for the network’s overall health).
How to become a delegator on Binance Smart Chain (BSC)
Becoming a delegator is probably a better choice for you if you don’t want to go through all the technical nitty-gritty of becoming a validator. If you’re a holder of BNB, delegating your stake can be a straightforward solution to support BSC and earn a return.
You can check out these guides for how to stake your BNB using some popular wallets:
The staking rewards are distributed to delegators every day at 00:00 UTC. When you delegate your stake to a validator, you’ll start receiving rewards the second day after you have delegated.
Closing thoughts
Whether you’re a developer, user, or just a DeFi enthusiast, there are many ways to participate in building the BSC ecosystem. BNB staking, however, is an excellent way for anyone to get involved with BSC as a direct supporter of network health and security.
Источник