加入星云测试网¶
Introduction¶
我们发布了Nebulas Testnet。它模拟了星云网络和NVM,并允许开发人员与星云交互而无需支付gas费用。
编译¶
需要首先构建Nebulas Mainnet的可执行文件和依赖库。 以下重点介绍几个重要模块:
- NBRE: 星云区块链运行时环境,运行Nebulas Protocol Representation的平台,例如DIP,NR等。
- NEB: 星云主网的主进程。
NEB
和NBRE
运行于独立进程中,两者通过IPC进行通信。
有关编译的详细信息,请参阅 tutorials.
配置文件¶
testnet 配置文件在 testnet/conf
testnet
分支下, 包括
genesis.conf¶
关于genesis块的所有可配置信息都在genesis.conf中定义,包括
- meta.chain_id: chain identity
- consensus.dpos.dynasty: the initial dynasty of validators
- token_distribution: the initial allocation of tokens
注意: 不要修改 genesis.conf.
config.conf¶
有关运行时的所有可配置信息都在config.conf中定义。
请查看 template.conf
查找有关运行时配置的更多详细信息。
Tips: 官方节点信息如下,
seed:["/ip4/52.60.150.236/tcp/8680/ipfs/QmVJikqWQst13QsgdCLBjgcSWwpAAdZjoExGdvK3r2CNhv"]
API 列表¶
Test Endpoint:
API | URL | Protocol |
---|---|---|
RESTful | https://testnet.nebulas.io/ | HTTP |
- GetNebState : returns nebulas client info.
- GetAccountState: returns the account balance and nonce.
- LatestIrreversibleBlock: returns the lastest irreversible block.
- Call: execute smart contract locally. the tx won‘t be submitted on chain.
- SendRawTransaction: submit signed transaction. The transaction must be signed before send.
- GetTransactionReceipt: get transaction receipt info by tansaction hash.
更多的星云 APIs : RPC.
作出贡献¶
可随意加入Nebulas Testnet。 如果你确实发现了什么问题,请 submit a issue 或者 submit a pull request 告诉我们,我们会尽快将您的姓名和网址添加到此页面。