-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate Nuget targeting README (#77)
- Loading branch information
Showing
8 changed files
with
85 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
## [1.3.0] | ||
Initial release | ||
## [1.3.1] - 2023.03.07 | ||
|
||
### Changed | ||
|
||
- Separate Nuget targeting README | ||
|
||
## [1.3.0] - 2023.03.07 | ||
|
||
### Added | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# [Tatum C# SDK](http://tatum.com/) | ||
|
||
## 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`: | ||
|
||
```cs | ||
// In Program.cs or Startup.cs | ||
builder.Services.AddTatumSdk(Network.Testnet); | ||
``` | ||
|
||
3. Inject Tatum Client to the class of your choice: | ||
|
||
```cs | ||
// EthereumController.cs | ||
private readonly ITatumSdk _tatumSdk; | ||
|
||
public SomeController(ITatumSdk tatumSdk) | ||
{ | ||
_tatumSdk = tatumSdk; | ||
} | ||
``` | ||
|
||
4. You are ready to use Tatum API! | ||
|
||
```cs | ||
var allNotificationsResult = await _tatumSdk.Notifications.GetAll(); | ||
``` | ||
|
||
## 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. | ||
|
||
**When contacting Tatum support providing those logs can help us identifying the issue faster.** | ||
|
||
To use debug mode simply register Tatum SDK like this: | ||
|
||
```cs | ||
// In Program.cs or Startup.cs | ||
builder.Services.AddTatumSdkWithDebug(Network.Testnet); | ||
``` | ||
|
||
or if using simple init: | ||
|
||
```cs | ||
var tatumSdk = TatumSdk.Init(Network.Testnet, apiKey, config => config.EnableDebugMode = true); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters