This directory contains example code demonstrating how to use the EpicChain C++ blockchain node implementation.
- consensus_example.cpp - Demonstrates consensus mechanism usage
- ledger_example.cpp - Shows blockchain ledger operations
- network_example.cpp - Network communication examples
- smartcontract_example.cpp - Smart contract execution examples
- vm_example.cpp - Virtual machine usage examples
Examples are built as part of the main project:
mkdir build && cd build
cmake ..
make
# Run an example
./examples/ledger_exampleEach example file contains:
- Clear documentation of what it demonstrates
- Step-by-step code with comments
- Expected output and results
When adding new examples:
- Keep them focused on one concept
- Include comprehensive comments
- Follow the project coding standards
- Test thoroughly before submitting