GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Skip To Content
  • Packages
  • Upload
  • Statistics
  • Documentation
  • Downloads
  • Blog
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing www.nuget.org — etherscan.dotnet.client 1.0.5



etherscan.dotnet.client 1.0.5

.NET 9.0 This package targets .NET 9.0. The package is compatible with this framework or higher.
  • .NET CLI
  • PMC
  • PackageReference
  • CPM
  • Paket CLI
  • Script & Interactive
  • File-Based Apps
  • Cake
dotnet add package etherscan.dotnet.client --version 1.0.5
                    
NuGet\Install-Package etherscan.dotnet.client -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="etherscan.dotnet.client" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="etherscan.dotnet.client" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="etherscan.dotnet.client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add etherscan.dotnet.client --version 1.0.5
                    
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: etherscan.dotnet.client, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package [email protected]
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=etherscan.dotnet.client&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=etherscan.dotnet.client&version=1.0.5
                    
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • README
  • Frameworks
  • Dependencies
  • Used By
  • Versions

EtherScan .NET Client

A comprehensive .NET client library for interacting with the EtherScan API.

For detailed endpoint information, see the official EtherScan V2 API Documentation.

Contents

  • Installation
  • Features
  • Quick Start
  • Usage Examples
  • Supported Chains
  • API Reference
  • Error Handling
  • Contributing
  • License

Installation

dotnet add package EtherScan.Dotnet.Client

Features

  • Full coverage of EtherScan API endpoints
  • Strongly typed request/response models
  • Async/await support
  • Comprehensive error handling
  • Multi-chain support
  • Built-in rate limiting handling
  • Automatic Wei to Ether conversion

Quick Start

using EtherScan.Dotnet.Client;
using EtherScan.Dotnet.Client.Models.Account.Request;
using EtherScan.Dotnet.Client.Models.Enumerations;

var client = new EtherScanClient("YOUR_API_KEY", ChainNetwork.EthereumMainnet, new HttpClient());

// Get account balance
var balance = await client.GetAccountBalanceAsync(new AccountBalanceRequest 
{ 
    Address = "0x742d35Cc6634C0532925a3b844Bc454e4438f44e" 
});

Console.WriteLine($"Balance: {balance.Result?.BalanceInEther} ETH");

Usage Examples

Account Module

// Get multiple account balances
var balances = await client.GetMultipleAccountBalanceAsync(
    new AccountBalanceRequest 
    { 
        Address = "0x742d...44e,0xdac1...ec7" 
    });

// Get transactions
var txs = await client.GetTransactionsByAddressAsync(new TransactionRequest
{
    Address = "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    StartBlock = 0,
    EndBlock = 99999999,
    Sort = "desc"
});

Contract Module

// Get contract ABI
var abi = await client.GetContractAbiAsync(new ContractAbiRequest 
{ 
    Address = "0xdac17f958d2ee523a2206206994597c13d831ec7" 
});

// Get contract source code
var source = await client.GetContractSourceCodeAsync(new ContractSourceCodeRequest 
{ 
    Address = "0xdac17f958d2ee523a2206206994597c13d831ec7" 
});

Supported Chains

  • Ethereum Mainnet
  • Sepolia Testnet
  • Holesky Testnet
  • BNB Chain
  • Polygon
  • Arbitrum
  • Optimism
  • Avalanche
  • Full list of supported networks

API Reference

See IEtherScanClient.cs for complete API documentation.

Error Handling

The client provides detailed error information through the Response<T> class:

public class Response<T>
{
    public string Status { get; set; }
    public bool IsSuccess => Status == "1" && Message == "OK";
    public string Message { get; set; }
    public T? Result { get; set; }
}

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
    • Microsoft.Extensions.Http (>= 9.0.0)
    • Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Include prerelease
Include vulnerable
Include deprecated
Version Downloads Last Updated
1.0.5 563 1/25/2025
1.0.4 211 1/25/2025
1.0.2 230 1/25/2025
Downloads
Full stats →
Total 1.0K
Current version 563
Per day average 1
About
  • Last updated 1/25/2025
  • Project website
  • Source repository
  • MIT license
  • Download package  (52.87 KB)
  • Download symbols  (19.98 KB)
  • Open in NuGet Package Explorer
  • Open in NuGet Trends
  • Report package
Owners
Contact owners →
  • arslanaybars gravatar arslanaybars

etherscan ethereum blockchain api client

Use the Atom feed to subscribe to new versions of etherscan.dotnet.client

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.