![]() |
VOOZH | about |
dotnet add package Nethereum.BlockchainStorage.Processors --version 6.1.0
NuGet\Install-Package Nethereum.BlockchainStorage.Processors -Version 6.1.0
<PackageReference Include="Nethereum.BlockchainStorage.Processors" Version="6.1.0" />
<PackageVersion Include="Nethereum.BlockchainStorage.Processors" Version="6.1.0" />Directory.Packages.props
<PackageReference Include="Nethereum.BlockchainStorage.Processors" />Project file
paket add Nethereum.BlockchainStorage.Processors --version 6.1.0
#r "nuget: Nethereum.BlockchainStorage.Processors, 6.1.0"
#:package Nethereum.BlockchainStorage.Processors@6.1.0
#addin nuget:?package=Nethereum.BlockchainStorage.Processors&version=6.1.0Install as a Cake Addin
#tool nuget:?package=Nethereum.BlockchainStorage.Processors&version=6.1.0Install as a Cake Tool
Database-agnostic background hosted services for indexing Ethereum blockchain data with automatic retry, reorg handling, and internal transaction tracing.
Nethereum.BlockchainStorage.Processors provides ready-to-use BackgroundService implementations that wire together the Nethereum.BlockchainProcessing pipeline with any EF Core-based blockchain storage provider. This package contains the processing logic; pair it with a provider-specific package for DI registration.
Two processors are included:
debug_traceTransaction (call tracer) and stores internal calls. Runs behind the block processor, capped to the main processor's progress.BlockchainProcessingHostedService runs the block processing pipeline as a BackgroundServiceInternalTransactionProcessingHostedService traces internal transactions as a separate BackgroundServiceRetryRunner.RunWithExponentialBackoffAsync()ChainStateValidationService.EnsureChainIdMatchesAsync()UseBatchReceipts option, enabled by default)BlockchainProcessingOptions from IConfigurationUse the provider-specific package instead of referencing this package directly:
dotnet add package Nethereum.BlockchainStorage.Processors.Postgres
dotnet add package Nethereum.BlockchainStorage.Processors.SqlServer
dotnet add package Nethereum.BlockchainStorage.Processors.Sqlite
Options are bound from IConfiguration. The extension method checks for a "BlockchainProcessing" section first; if absent, it reads from the root configuration.
{
"BlockchainUrl": "http://localhost:8545",
"BlockchainProcessing": {
"BlockchainUrl": "http://localhost:8545",
"MinimumBlockConfirmations": 12,
"FromBlock": 0,
"ReorgBuffer": 10,
"UseBatchReceipts": true
}
}
| Property | Type | Default | Description |
|---|---|---|---|
BlockchainUrl |
string |
required | JSON-RPC endpoint URL |
Name |
string |
null |
Optional chain name for logging |
MinimumBlockConfirmations |
uint? |
12 |
Blocks behind chain head to wait before processing |
FromBlock |
BigInteger? |
null |
Starting block if no progress exists |
ToBlock |
BigInteger? |
null |
Stop at this block (null = continuous) |
ReorgBuffer |
int |
0 |
Number of blocks to re-check for reorgs |
UseBatchReceipts |
bool |
true |
Use eth_getBlockReceipts instead of individual receipt calls |
NumberOfBlocksToProcessPerRequest |
int |
1000 |
Batch size for log retrieval |
RetryWeight |
int |
50 |
Reduce batch size on retry failures |
ProcessBlockTransactionsInParallel |
bool |
true |
Parallel transaction processing within a block |
PostVm |
bool |
false |
Include VM stack traces |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on Nethereum.BlockchainStorage.Processors:
| Package | Downloads |
|---|---|
|
Nethereum.BlockchainStorage.Processors.Postgres
PostgreSQL-specific DI registration for the Nethereum blockchain indexer hosted services. |
|
|
Nethereum.BlockchainStorage.Processors.Sqlite
SQLite-specific DI registration for the Nethereum blockchain indexer hosted services. |
|
|
Nethereum.BlockchainStorage.Processors.SqlServer
SQL Server-specific DI registration for the Nethereum blockchain indexer hosted services. |
This package is not used by any popular GitHub repositories.