nimbus-eth2/ncli/README.md

32 lines
907 B
Markdown
Raw Normal View History

2019-09-28 16:23:02 +00:00
# Introduction
`ncli` is a set of low level / debugging tools to interact with the nimbus [beacon chain specification](https://github.com/ethereum/eth2.0-specs/tree/dev/specs) implementation, simliar to [zcli](https://github.com/protolambda/zcli). With it, you explore SSZ, make state transitions and compute hash tree roots.
# Tools
* transition: Perform state transition given a pre-state and a block to apply (both in SSZ format)
2019-12-16 18:31:01 +00:00
* hash_tree_root: Print tree root of an SSZ object
2019-09-28 16:23:02 +00:00
* pretty: Pretty-print SSZ object as JSON
# Building
Follow the instructions from [nimbus-eth2](../README.md)
2019-09-28 16:23:02 +00:00
```bash
git clone https://github.com/status-im/nimbus-eth2.git
cd nimbus-eth2
2019-09-28 16:23:02 +00:00
make
```
# Usage
```
# Build with minimal config
../env.sh nim c -d:const_preset=minimal ncli_transition
2019-09-28 16:23:02 +00:00
# Build with mainnet config
../env.sh nim c -d:const_preset=mainnet ncli_transition
2019-09-28 16:23:02 +00:00
# Run..
./ncli_transition --help
```