Class ApSdkFactory
- Namespace
- AkashicPaySDK
- Assembly
- AkashicPaySDK.dll
public static class ApSdkFactory
- Inheritance
-
ApSdkFactory
- Inherited Members
Methods
CreateOtkFromKeyPair(string, string)
Creates an AcOtk instance from a given private key and L2 address.
public static AcOtk CreateOtkFromKeyPair(string privateKey, string l2Address)
Parameters
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
Returns
- AcOtk
An Otk instance.
CreateSdk(APEnvironment, NodeInfo, AcOtk, string?)
Creates an IAPSdk instance based on the given environment and otk.
public static Task<IApSdk> CreateSdk(APEnvironment environment, AcBaseNode.NodeInfo baseNode, AcOtk otk, string? apiSecret = null)
Parameters
environmentAPEnvironmentThe environment (Development or Production).
baseNodeAcBaseNode.NodeInfootkAcOtkThe otk instance.
apiSecretstring
Returns
CreateSdk(APEnvironment, AcOtk, string?)
Creates an IAPSdk instance based on the given environment and otk.
public static Task<IApSdk> CreateSdk(APEnvironment environment, AcOtk otk, string? apiSecret = null)
Parameters
environmentAPEnvironmentThe environment (Development or Production).
otkAcOtkThe otk instance.
apiSecretstring