Terra.Net.OnChainPayments 1.1.3

dotnet add package Terra.Net.OnChainPayments --version 1.1.3
NuGet\Install-Package Terra.Net.OnChainPayments -Version 1.1.3
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="Terra.Net.OnChainPayments" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Terra.Net.OnChainPayments --version 1.1.3
#r "nuget: Terra.Net.OnChainPayments, 1.1.3"
#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 Terra.Net.OnChainPayments as a Cake Addin
#addin nuget:?package=Terra.Net.OnChainPayments&version=1.1.3

// Install Terra.Net.OnChainPayments as a Cake Tool
#tool nuget:?package=Terra.Net.OnChainPayments&version=1.1.3

Internally manages gas estimation required by the burn tax for successful transactions on the blockchain. Makes it easier for devs to get started with payments on the LUNC/LUNA Blockchains.

Features

  • Written in C#, with type definitions
  • Works with Xamarin, Unity, Asp, and all other frameworks in the .Net Ecosystems
  • Makes it easier to manage payments for anyone deploying to the Apple or Google app stores

Installation & Configuration

Grab the latest version off NuGet

dotnet add package Terra.Net.OnChainPayments

Please make sure to add the following nuget Packages into your .csproj file

<ItemGroup>
    <PackageReference Include="LightInject" Version="6.6.3" />
    <PackageReference Include="modernhttpclient-updated" Version="3.4.3" />
    <PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
    <PackageReference Include="Microsoft.Extensions.Http.Polly" Version="7.0.4" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
    <PackageReference Include="Polly" Version="7.2.3" />
    <PackageReference Include="Polly.Extensions.Http" Version="3.0.0" />
    <PackageReference Include="Terra.Microsoft.Extensions" Version="1.0.2" />
    <PackageReference Include="Terra.Microsoft.Keys" Version="1.0.9" />
    <PackageReference Include="NBitcoin" Version="7.0.23" />
    <PackageReference Include="RIPEMD" Version="4.3.0" />
  </ItemGroup>

Usage

This package can be used for Mobile & Web Developers, or SDK Developers looking to extend the Terra Platform

Manage Payments

Please note: PaymentsManager must be registered as a Singleton to prevent issues with the Connection Pool.

void ProcessPaymentForTerra() {
     // Wallet where customer payments will be transferred to
     string businessWallet = "terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp";

     // Recovery Words of the Customer wallet that will be making the payment
     string customerRecoveryWords = "notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius";

     // Configure your PaymentManager
     // Set Blockchain to target (in this case Classic)
     var paymentsManager = new PaymentsManager(TerraEnvironment.Classic)
                               .ConfigureBusinessWallet(businessWallet)
                               .ConfigureCustomerWallet(customerRecoveryWords);

     // Make a payment of 100 LUNC
     var receipt = await paymentsManager.ChargeCustomer(100);
}

Terra.Net.OnChainPayments For Unity Developers

If you are using Terra.Net.OnChainPayments for Unity, please make sure to install the following asset in your project, and follow the installation instructions above

License

This software is licensed under the MIT license. See LICENSE for full disclosure.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.1.3 167 4/6/2023
1.1.2 162 4/1/2023
1.1.1 176 4/1/2023
1.1.0 162 4/1/2023
1.0.9 196 3/15/2023
1.0.8 181 3/14/2023
1.0.7 196 3/2/2023
1.0.6 214 2/28/2023
1.0.5 222 2/26/2023
1.0.4 203 2/24/2023
1.0.3 209 2/23/2023
1.0.2 226 2/20/2023
1.0.1 218 2/17/2023
1.0.0 233 2/3/2023

Package Update