.NET Integration

Connect to 256 Blocks using .NET and C#

256 Blocks provides full compatibility with .NET applications through the Nethereum library, the most popular Ethereum integration library for the .NET ecosystem.

Available Libraries

LibraryDescription
NethereumThe .NET integration library for Ethereum

Authentication

All .NET integrations use the X-API-Key header for authentication. Use your Endpoint Key from the endpoint settings screen:

// Configure HttpClient with Endpoint Key header
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Add("X-API-Key", "your-endpoint-key");

RPC Endpoint

Use the following endpoint format:

https://rpc.256blocks.com/{chain}

Supported chains include ethereum, base, arbitrum, optimism, polygon, and bsc.

.NET Integration | 256 Blocks