Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.85 KB

README.md

File metadata and controls

66 lines (42 loc) · 1.85 KB

Build Nuget

Quick Start

  1. Include tatum package in your project:

    dotnet add ${your_project} package Tatum

  2. Register Tatum Client in the DI container by calling IServiceCollection method AddTatumSdk:

// In Program.cs or Startup.cs
builder.Services.AddTatumSdk(Network.Testnet);
  1. Inject Tatum Client to the class of your choice:
// EthereumController.cs
private readonly ITatumSdk _tatumSdk;

public SomeController(ITatumSdk tatumSdk)
{
    _tatumSdk = tatumSdk;
}
  1. You are ready to use Tatum API!
var allNotificationsResult = await _tatumSdk.Notifications.GetAll();

Documentation

Please find SDK related documentation here.

Debug Mode

If there ever is a need to see what is going on under the hood you can use the Debug Mode to output underlying request curl and response content to the Debug console.

To use debug mode simply register Tatum SDK like this:

// In Program.cs or Startup.cs
builder.Services.AddTatumSdkWithDebug(Network.Testnet);

or if using simple init:

var tatumSdk = TatumSdk.Init(Network.Testnet, apiKey, config => config.EnableDebugMode = true);

Further Examples

Demo App (.NET API)

Troubleshooting

Should you face any issues, feel free to contribute to our troubleshooting process by forking the SDK and submitting pull requests for any changes. For reporting issues and tracking progress, create new issues within this GitHub repository.