If you have an existing installation, complete applicable Migrations before proceeding.
TrueBlocks / Unchained Index
Table of Contents
- Command line
- The unchained index
- Docker version
- List of Contributors
TrueBlocks improves access to blockchain data for any EVM-compatible chain (particularly Ethereum mainnet) while remaining entirely local.
chifra scrapewhich builds the Unchained Index, an index of address appearances that provides lightning-fast access to transactional histories,
An optional binary cache, which speeds up queries to the RPC by orders of magnitude,
Enhanced command-line options enabling much better access to chain data for data scientists and analysts. For example, easily extract all
logsproduced by a smart contract or view all ERC-20 holdings for an account, etc.,
Advanced tools for producing reconciled "bank statements" and accounting export for any token including ETH.
An infinite number of other things restricted only by your imagination.
Please see the installation instructions on our website.
Searching account histories
While optional, you most likely want to use the Unchained Index to search account histories. To do so, get the index.
You may use the command line, of course, to access data, but you may also wish to run an API server:
curl to pull data or use it to drive our "pre-beta" Account Explorer. See installing the explorer. The API provides the identical tools and options as the command line and it documented here.
Generate gRPC files (developers only)
To regenerate gRPC files, you have to install protobuf tools:
brew install protobuf # Mac go install email@example.com go install firstname.lastname@example.org
The TrueBlocks command-line tool is called
chifra. This gives you access to all the other tools:
Get more help on any sub-command with
chifra <cmd> --help. Full documentation is available on our website.
Let's look at the first subcommand, called
If you get a bunch of data, congratulations, your installation is working. Try this command which shows every 10th block between the first and the 100,000th:
chifra blocks 0-100000:10
You should see a long stream of data. Kill the display with
See the entire list of chifra commands with
Depending on your setup, you may get the following error message when you run some
Warning: A request to your Ethereum node (http://localhost:8545) resulted in the following error [Could not connect to server]. Specify a valid rpcProvider by editing $rootPath/trueblocks.toml.
Edit the file as instructed. You may find helpful answers on our FAQ.
See our blog for a lot of useful articles on getting started and using TrueBlocks.
If you continue to have trouble, join our discord discussion
The unchained index
The primary data structure produced by TrueBlocks is an index of address appearances called the Unchained Index. This index provides very quick access to transaction histories for any address.
You may either build the entire index from scratch (requires an EVM-compatible tracing/archive node) or you may download a snapshot of the index build from there.
This process is described in the article Indexing Addresses.
Our official docker version is in a separate repo. Please see that repo for more information on running with Docker.
The TrueBlocks documentation repo builds the TrueBlocks website. See our website for the best available documentation.
A chart showing the number of stars on our repo over time.
We love contributors. Please see information about our workflow before proceeding.
- Fork this repository into your own repo.
- Create a branch:
git checkout -b <branch_name>.
- Make changes to your local branch and commit them to your forked repo:
git commit -m '<commit_message>'
- Push back to the original branch:
git push origin TrueBlocks/trueblocks-core
- Create the pull request.
If you have questions, comments, or complaints, please join the discussion on our discord server which is linked from our website.
List of Contributors
Thanks to the following people who have contributed to this project: