command
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 19, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
SDK Usage Example
This directory contains a full example of how to use evm-scanner as a Go library (SDK) in your own applications.
How to Run
-
Prepare configuration:
Ensure you have a config.yaml in the root directory (you can copy config.yaml.example).
-
Run the example:
go run main.go
Key Concepts
- Chain Presets: Register custom chain parameters (block time, reorg safety).
- Client: High-level RPC client with failover support.
- Persistence: Choose between Memory, Redis, or Postgres for tracking progress.
- Scanner: The core engine that orchestrates fetching logs and managing cursors.
- Handler: Define your own logic to process decoded logs.
Code Overview
pkg/scanner: Core scanning logic.
pkg/rpc: RPC client wrapper.
pkg/decoder: ABI-based event decoding.
pkg/storage: Progress persistence implementations.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.