Sila API Docs | Sila Banking and Payments API

Welcome to the Sila API!

.Net/C# SDK

Version 0.2.30


NOTE: This SDK is a Release Candidate.
Within the NuGet Package Manager, you will need to check the "Include prelease" checkbox in order to locate the package.

The .Net SDK requires .Net framework 4.6.1 or later. You can also use .NET Core 2.1 LTS or 3.1 LTS

Initialization sets up the app private key and handle for the SDK to use for signing subsequent requests. The other SDK functionality will not be available until this configuration is completed. The SDK does not store this information outside of the instance that is configured. Private keys are never transmitted over the network or stored outside the scope of this instance.

// Via dotnet CLI
> dotnet add package Sila.SDK --version 0.2.30

// Add the SDK reference to your .csproj
> <PackageReference Include="Sila.SDK" Version="0.2.30" />

// Initialize the application
using SilaAPI.silamoney.client.api;
using SilaAPI.silamoney.client.domain;

class SilamoneyApi
    string privateKey = "0x...";
    string appHandle = "app.silamoney.eth";
    bool debug = true;
    SilaApi api = new SilaApi(Environments.SANDBOX, privateKey, appHandle);
    // To enable/disable debug you can pass an optional parameter to the client indicating true (debug enabled) or false (debug disabled).
    SilaApi api = new SilaApi(Environments.SANDBOX, privateKey, appHandle, debug);
    // Generate wallet
    var wallet = api.GenerateWallet();
    Console.WriteLine(wallet.Address); // Wallet public address
    Console.WriteLine(wallet.PrivateKey); // Wallet private key

Updated 16 days ago

.Net/C# SDK

Version 0.2.30

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.