Skip to content

.NET 5 library for working with the Tangram wallet REST API (bamboo)

License

Notifications You must be signed in to change notification settings

meany/TanDotNet

Repository files navigation

TanDotNet

NuGet build status

.NET 5 library for working with the Tangram wallet REST API (bamboo)

Features

  • Wrapper around API calls by creating a TangramClient and calling the methods within it

Roadmap

  • wen mainnet

Required Dependencies

  • Newtonsoft.Json
  • RestSharp

Enable the REST API in the bamboo appsettings.json:

  "network": {
    "enabled_restAPI": true,
  }

Example usage

using var client = new TangramClient("http://localhost:8001");
var balance = await client.WalletBalance(new Wallet
{
    Identifier = "id_a1b2c3d4e5f6...",
    Passphrase = "deputy sausage price exclude fly..."
});

Console.WriteLine($"Wallet balance: {balance}");

var spend = await client.WalletSpend(new Wallet
{
    Identifier = "id_a1b2c3d4e5f6...",
    Passphrase = "deputy sausage price exclude fly..."
},
    address: "waPXFhGZaxPtGTVL...",
    amount: 18.374,
    memo: "for the pizza");

Console.WriteLine($"New balance: {spend.Balance}");

Contribution

PRs and issues are appreciated.

About

.NET 5 library for working with the Tangram wallet REST API (bamboo)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages