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
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)
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
APEnvironmentThe environment (Development or Production).
baseNode
AcBaseNode.NodeInfootk
AcOtkThe otk instance.
Returns
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
APEnvironmentThe environment (Development or Production).
otk
AcOtkThe otk instance.