This directory contains examples demonstrating how to use the TrueBlocks core SDK for various blockchain data tasks.
These examples showcase different features and capabilities of TrueBlocks, helping developers understand how to:
- Query and analyze blockchain data
- Work with addresses, transactions, and blocks
- Efficiently index and retrieve on-chain information
- Implement common blockchain data patterns
Examples are organized by functionality:
-
Basic - Simple examples to get started
- simple, comparison, findFirst, chainList
-
Indexing - Working with TrueBlocks' indexing capabilities
- withStreaming, cancelContext
-
Analysis - Tools for analyzing blockchain data
- comparison, keystore
-
Integration - Connecting TrueBlocks with other systems
- withStreaming, chainList
Most examples can be run with:
cd example-directory
go run .
To run these examples, you'll need:
- TrueBlocks core installed
- Access to an Ethereum node (local or remote)
- Any additional dependencies specified in the example's README
For more detailed information, visit the TrueBlocks documentation.
We welcome contributions! If you've created a useful example, please consider submitting a pull request.