Mvx.ApiClient.Net
1.0.0
dotnet add package Mvx.ApiClient.Net --version 1.0.0
NuGet\Install-Package Mvx.ApiClient.Net -Version 1.0.0
<PackageReference Include="Mvx.ApiClient.Net" Version="1.0.0" />
paket add Mvx.ApiClient.Net --version 1.0.0
#r "nuget: Mvx.ApiClient.Net, 1.0.0"
// Install Mvx.ApiClient.Net as a Cake Addin #addin nuget:?package=Mvx.ApiClient.Net&version=1.0.0 // Install Mvx.ApiClient.Net as a Cake Tool #tool nuget:?package=Mvx.ApiClient.Net&version=1.0.0
MultiversX ApiClient
Introduction
Mvx.ApiClient.Net is a C# wrapper for the MultiversX API, designed for querying data from the blockchain. It provides a simple and efficient interface to interact with the API, making it easy to retrieve relevant information for your applications. The client is built with performance and scalability in mind, allowing developers to easily integrate with the MultiversX network.
Getting started
To integrate Mvx.ApiClient.Net into your C# application, follow these setup steps.
Installation: Add the package via NuGet Package Manager or the .NET CLI:
dotnet add package Mvx.ApiClient.Net
Configuration: Configure the client by registering it with your application's
IServiceCollection
. Specify the desired network environment — Mainnet, Testnet or Devnet — during setup using theAddMvxApiClient
extension method. This will register the required services.using Mvx.ApiClient.Net; public void ConfigureServices(IServiceCollection services) { // Configure client for the MultiversX Mainnet services.AddMvxApiClient(NetworkType.Mainnet); }
Usage: With the client configured and registered, inject and use
IMvxApiClient
wherever you need access to the MultiversX API.public class BlockchainService { private readonly IMvxApiClient _mvxApiClient; public BlockchainService(IMvxApiClient mvxApiClient) { _mvxApiClient = mvxApiClient; } public async Task GetNetworkStats() { var networkStats = await _mvxApiClient.Network.GetNetworkStatsAsync(); // Process network stats as needed ... } }
For more examples and advanced usage, consult the docs.
Build and Test
To build the project locally, ensure you have the following tools installed:
After cloning the repository, you can build the project with dotnet build
and run all tests with dotnet test
Versioning
Mvx.ApiClient.Net follows semantic versioning.
Changelog
The changelog is available in the CHANGELOG.md file.
License
The code under this repository is available under the MIT license. For more details, please refer yourself to the license file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 83 | 11/3/2024 |