How to Join the Nebulas Mainnet¶
Introduction¶
The Nebulas Mainnet 2.0 (Nebulas Nova) has been released. This tutorial will teach you how to join and work with the Nebulas Mainnet.
Build¶
The Nebulas Mainnet‘s executable file and dependant libraries need to be built first. Several important modules are highlighted below:
- NBRE: The Nebulas Blockchain Runtime Environment is the platform for running Nebulas Protocol Representation, such as the DIP, the NR, etcetera.
- NEB: The main process of the Nebulas Mainnet.
NEB
andNBRE
run in standalone processes, and communicate through IPC.
Details of building the modules can be found in tutorials.
Configuration¶
The Mainnet configuration files are in folder mainnet/conf
, including
genesis.conf¶
All configurable information about genesis block is defined in genesis.conf, including
- meta.chain_id: chain identity
- consensus.dpos.dynasty: the initial dynasty of validators
- token_distribution: the initial allocation of tokens
Attention: DO NOT change the genesis.conf.
config.conf¶
All configurable information about runtime is defined in config.conf.
Please check the template.conf
to find more details about the runtime configuration.
Tips: the official seed node info is as follows,
seed:["/ip4/52.2.205.12/tcp/8680/ipfs/QmQK7W8wrByJ6So7rf84sZzKBxMYmc1i4a7JZsne93ysz5","/ip4/52.56.55.238/tcp/8680/ipfs/QmVy9AHxBpd1iTvECDR7fvdZnqXeDhnxkZJrKsyuHNYKAh","/ip4/13.251.33.39/tcp/8680/ipfs/QmVm5CECJdPAHmzJWN2X7tP335L5LguGb9QLQ78riA9gw3"]
API List¶
Main Endpoint:
API | URL | Protocol |
---|---|---|
RESTful | https://mainnet.nebulas.io/ | HTTP |
- GetNebState : returns nebulas client info.
- GetAccountState: returns the account balance and nonce.
- Call: execute smart contract local, don‘t submit on chain.
- SendRawTransaction: submit the signed transaction.
- GetTransactionReceipt: get transaction receipt info by tansaction hash.
More Nebulas APIs at RPC.
Tutorials¶
English¶
- Installation (thanks Victor)
- Sending a Transaction (thanks Victor)
- Writing Smart Contract in JavaScript (thanks otto)
- Introducing Smart Contract Storage (thanks Victor)
- Interacting with Nebulas by RPC API (thanks Victor)
Contribution¶
Feel free to join the Nebulas Mainnet. If you have found something wrong, please submit an issue or submit a pull request to let us know, and we will add your name and URL to this page as soon as possible.