Table of Contents

Class ApSdkFactory

Namespace
AkashicPaySDK
Assembly
AkashicPaySDK.dll
public static class ApSdkFactory
Inheritance
ApSdkFactory
Inherited Members

Methods

CreateOtk()

Creates a new Otk instance with a generated private key and public key.

public static AcOtk CreateOtk()

Returns

AcOtk

An Otk instance.

CreateOtkFromKeyPair(string, string)

Creates an AcOtk instance from a given private key and L2 address.

public static AcOtk CreateOtkFromKeyPair(string privateKey, string l2Address)

Parameters

privateKey string

The private key.

l2Address string

The L2 address.

Returns

AcOtk

An AcOtk instance.

CreateOtkFromRecoveryPhrase(string, string)

Creates an Otk instance from a given recovery phrase and L2 address.

public static AcOtk CreateOtkFromRecoveryPhrase(string recoveryPhrase, string l2Address)

Parameters

recoveryPhrase string

The recovery phrase.

l2Address string

The L2 address.

Returns

AcOtk

An Otk instance.

CreateSdk(APEnvironment, NodeInfo, AcOtk)

Creates an IAPSdk instance based on the given environment and otk.

public static Task<IApSdk> CreateSdk(APEnvironment environment, AcBaseNode.NodeInfo baseNode, AcOtk otk)

Parameters

environment APEnvironment

The environment (Development or Production).

baseNode AcBaseNode.NodeInfo
otk AcOtk

The otk instance.

Returns

Task<IApSdk>

An IAPSdk instance.

CreateSdk(APEnvironment, AcOtk)

Creates an IAPSdk instance based on the given environment and otk.

public static Task<IApSdk> CreateSdk(APEnvironment environment, AcOtk otk)

Parameters

environment APEnvironment

The environment (Development or Production).

otk AcOtk

The otk instance.

Returns

Task<IApSdk>

An IAPSdk instance.