https://github.com/marfusios/strike-client
🛠️ C# client for Strike API
https://github.com/marfusios/strike-client
api bitcoin lightning lightning-network rest-client strike
Last synced: about 1 year ago
JSON representation
🛠️ C# client for Strike API
- Host: GitHub
- URL: https://github.com/marfusios/strike-client
- Owner: Marfusios
- License: mit
- Created: 2024-06-19T13:44:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T11:06:28.000Z (over 1 year ago)
- Last Synced: 2025-03-28T12:21:09.132Z (about 1 year ago)
- Topics: api, bitcoin, lightning, lightning-network, rest-client, strike
- Language: C#
- Homepage: https://docs.strike.me/api
- Size: 253 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Strike .NET client [](https://www.nuget.org/packages/StrikeWallet.Client) [](https://www.nuget.org/packages/StrikeWallet.Client)
This is a C# implementation of the Strike API found here:
https://docs.strike.me/api
[Releases and breaking changes](https://github.com/Marfusios/strike-client/releases)
### License:
MIT
### Features
* installation via NuGet ([StrikeWallet.Client](https://www.nuget.org/packages/StrikeWallet.Client))
* targeting .NET Standard 2.1 (.NET Core, Linux/MacOS compatible), .NET 5-8
### Usage
```csharp
var apiKey = "YOUR_API_KEY";
var environment = Environment.Live;
var client = new StrikeClient(environment, apiKey);
var profile = await client.Accounts.GetProfile("marfusios");
```
#### With dependency injection support:
appsettings.json
```json
{
"Strike": {
"Environment": "Live",
"ApiKey": "YOUR_API_KEY"
}
}
```
Startup.cs
```csharp
services.AddStrike();
```
More usage examples:
* console sample ([link](test_integration/Strike.Client.Sample/Program.cs))
* integration tests ([link](test_integration/Strike.Client.IntegrationTests))
**Pull Requests are welcome!**