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                
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="Mvx.ApiClient.Net" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mvx.ApiClient.Net --version 1.0.0                
#r "nuget: Mvx.ApiClient.Net, 1.0.0"                
#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.
// 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.

  1. Installation: Add the package via NuGet Package Manager or the .NET CLI:

    dotnet add package Mvx.ApiClient.Net
    
  2. Configuration: Configure the client by registering it with your application's IServiceCollection. Specify the desired network environment — Mainnet, Testnet or Devnet — during setup using the AddMvxApiClient 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);
    }
    
  3. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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