Nethereum.BlockchainStorage.Processors.Postgres
6.0.4
Prefix Reserved
dotnet add package Nethereum.BlockchainStorage.Processors.Postgres --version 6.0.4
NuGet\Install-Package Nethereum.BlockchainStorage.Processors.Postgres -Version 6.0.4
<PackageReference Include="Nethereum.BlockchainStorage.Processors.Postgres" Version="6.0.4" />
<PackageVersion Include="Nethereum.BlockchainStorage.Processors.Postgres" Version="6.0.4" />
<PackageReference Include="Nethereum.BlockchainStorage.Processors.Postgres" />
paket add Nethereum.BlockchainStorage.Processors.Postgres --version 6.0.4
#r "nuget: Nethereum.BlockchainStorage.Processors.Postgres, 6.0.4"
#:package Nethereum.BlockchainStorage.Processors.Postgres@6.0.4
#addin nuget:?package=Nethereum.BlockchainStorage.Processors.Postgres&version=6.0.4
#tool nuget:?package=Nethereum.BlockchainStorage.Processors.Postgres&version=6.0.4
Nethereum.BlockchainStorage.Processors.Postgres
PostgreSQL-specific DI registration for the Nethereum blockchain indexer hosted services.
Overview
Provides AddPostgresBlockchainProcessor() and AddPostgresInternalTransactionProcessor() extension methods that wire together the database-agnostic processing pipeline from Nethereum.BlockchainStorage.Processors with PostgreSQL storage from Nethereum.BlockchainStore.Postgres.
Installation
dotnet add package Nethereum.BlockchainStorage.Processors.Postgres
Targets net10.0.
Dependencies
- Nethereum.BlockchainStorage.Processors - Database-agnostic processing services and hosted services
- Nethereum.BlockchainStore.Postgres - PostgreSQL DbContext and context factory
Quick Start
var builder = Host.CreateApplicationBuilder(args);
var connectionString = builder.Configuration.GetConnectionString("PostgresConnection");
builder.Services.AddPostgresBlockchainProcessor(
builder.Configuration,
connectionString);
builder.Services.AddPostgresInternalTransactionProcessor();
var host = builder.Build();
using var context = new PostgresBlockchainDbContext(connectionString);
await context.Database.MigrateAsync();
await host.RunAsync();
Connection String Resolution
The extension resolves the connection string in order:
- Explicit
connectionStringparameter ConnectionStrings:PostgresConnectionConnectionStrings:BlockchainDbStorage
Aspire Integration
var connectionString = builder.Configuration.GetConnectionString("nethereumdb");
builder.Services.AddPostgresBlockchainProcessor(builder.Configuration, connectionString);
builder.Services.AddPostgresInternalTransactionProcessor();
Configuration
See Nethereum.BlockchainStorage.Processors for BlockchainProcessingOptions configuration.
Related Packages
- Nethereum.BlockchainStorage.Processors - Base processing services
- Nethereum.BlockchainStore.Postgres - PostgreSQL storage layer
- Nethereum.BlockchainStorage.Token.Postgres - Token transfer log processing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Nethereum.BlockchainStorage.Processors (>= 6.0.4)
- Nethereum.BlockchainStore.Postgres (>= 6.0.4)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.