.NET/C# SDK

Installation

Add the SDK from the Nuget Package Manager to your project. The SDK is available here.

Initialize the application

using SilaAPI.silamoney.client.api;
class SilamoneyApi
{
SilaApi api = new SilaApi(Environments.SANDBOX,
privateKey,
appHandle);
}

This 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.

You can manage your apps in the Developer Console. The APPLICATION_PRIVATE_KEY is the Private Key that matches the Public Key associated with the Application Handle in your Console.

Keep your Application Private Key secure! Never share it with anyone, including us. If you believe that your private key has been compromised, please replace the key for that app with a new one in the Developer Console.

Making your first API calls

The following represents a simple check_handle request:

# check user handle availability
string userHandle = "user.silamoney.eth";
ApiResponse<object> response = api.CheckHandle(userHandle);