Skip to content

TrueBlocks/trueblocks-examples

Repository files navigation

Examples

This directory contains examples demonstrating how to use the TrueBlocks core SDK for various blockchain data tasks.

Overview

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

Categories

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

Running Examples

Most examples can be run with:

cd example-directory
go run .

Dependencies

To run these examples, you'll need:

  1. TrueBlocks core installed
  2. Access to an Ethereum node (local or remote)
  3. Any additional dependencies specified in the example's README

Documentation

For more detailed information, visit the TrueBlocks documentation.

Contributing

We welcome contributions! If you've created a useful example, please consider submitting a pull request.

About

Examples repo for TrueBlocks core

Resources

Stars

Watchers

Forks

Packages

No packages published