๐ฒGet Started
Requirements
You have a knowledge in .NET Core/ASP.NET Core
, you can start here ASP.NET Core fundamentals | Microsoft Docs.
Add New WebApp Projectโ
Configure the WebApp Projectโ
Add the Nuget package to the WebApp Projectโ
Download and Install the latest Cash.NetCore
from NuGet using Package Manager, CLI or by adding it to the Package Reference:
PM> Install-Package Cash.NetCore -Version 1.0.0
> dotnet add package Cash.NetCore --version 1.0.0
<PackageReference Include="Cash.NetCore" Version="1.0.0" />
Requirements
For more details, visit BCH API.
Configure CashOptions in appsettings.json
file of the WebApp Projectโ
Update the file appsettings.Development.json
for development environment and appsettings.json
for production environment:
"CashOptions": {
"Token": "", //(Optional, can be blank) Api-Key Token from BCH API
"Uri": "https://api.fullstack.cash/" // BCH API URI Testnet or Mainnet
}
Add the Configuration to the WebApp Project Program.cs
โ
Update Program.cs file
:
//imports
using Cash.NetCore;
var builder = WebApplication.CreateBuilder(args);
//read the configuration from appsettings.json and add it to the builder
builder.Services.AddCashServices(builder.Configuration);
Now you are ready to use the Cash.NetCore API
.