C++ library for communicating with Ethereum.
Clone the repository git clone --recursive
or if already cloned, git submodule update --init --recursive
at the root to ensure all source code is
retrieved.
Then run the following commands from the root of this repository:
Linux
# Install dependencies
apt install cmake build-essential libssl-dev libcurl4-openssl-dev
# Build
cmake -B build -S .
cmake --build build --parallel --verbose
Windows via MSYS2 (MinGW, UCRT64, e.t.c)
# Update pacman and install dependencies
pacman -Syuu # Terminal may prompt to restart before proceeding
pacman -S git base-devel libargp-devel cmake gcc libcurl-devel gmp-devel autoconf automake libtool
# Build
cmake -B build -S .
cmake --build build --parallel --verbose
Various options can be added to the cmake ..
line; some common options are:
-DCMAKE_BUILD_TYPE=Release
to make a release build
Unit tests use Catch2 as a formal
unit-test framework. Unit tests are built by default as part of the standard
CMake build logic (unless being built as a subdirectory of another CMake
project) and can be invoked through the make test
or running the test binaries
build in build/tests
.