Table of Contents

Class ApSdk

Namespace
AkashicPaySDK.Sdk
Assembly
AkashicPaySDK.dll
public sealed class ApSdk : IApSdk, IDisposable
Inheritance
ApSdk
Implements
Inherited Members

Constructors

ApSdk(APEnvironment, ApBaseUrl, AcBaseContract, AcOtk)

public ApSdk(APEnvironment environment, ApBaseUrl apBaseUrl, AcBaseContract contract, AcOtk otk)

Parameters

environment APEnvironment
apBaseUrl ApBaseUrl
contract AcBaseContract
otk AcOtk

ApSdk(APEnvironment, ApBaseUrl, AcBaseContract, AcOtk, UriInfo)

public ApSdk(APEnvironment environment, ApBaseUrl apBaseUrl, AcBaseContract contract, AcOtk otk, AcBaseNode.UriInfo acTargetNode)

Parameters

environment APEnvironment
apBaseUrl ApBaseUrl
contract AcBaseContract
otk AcOtk
acTargetNode AcBaseNode.UriInfo

Methods

Dispose()

public void Dispose()

GetBalanceAsync()

public Task<ApBalanceResult?> GetBalanceAsync()

Returns

Task<ApBalanceResult>

GetDepositAddressAsync(BaseNetworkSymbol, string)

public Task<ApDepositAddressResult> GetDepositAddressAsync(BaseNetworkSymbol networkSymbol, string identifier)

Parameters

networkSymbol BaseNetworkSymbol
identifier string

Returns

Task<ApDepositAddressResult>

GetTransactionDetailAsync(string)

public Task<ApTransactionDetailResult?> GetTransactionDetailAsync(string l2TxHash)

Parameters

l2TxHash string

Returns

Task<ApTransactionDetailResult>

GetTransfersAsync(ApTransactionsParam)

public Task<ApTransfersResult> GetTransfersAsync(ApTransactionsParam param)

Parameters

param ApTransactionsParam

Returns

Task<ApTransfersResult>

Init()

public Task Init()

Returns

Task

KeyBackup()

public AcOtk KeyBackup()

Returns

AcOtk

PayoutAsync(string, string, double, BaseNetworkSymbol)

public Task<ApPayoutResult> PayoutAsync(string recipientId, string to, double amount, BaseNetworkSymbol networkSymbol)

Parameters

recipientId string
to string
amount double
networkSymbol BaseNetworkSymbol

Returns

Task<ApPayoutResult>

PayoutAsync(string, string, double, BaseNetworkSymbol, ApTokenSymbol)

public Task<ApPayoutResult> PayoutAsync(string recipientId, string to, double amount, BaseNetworkSymbol networkSymbol, ApTokenSymbol tokenSymbol)

Parameters

recipientId string
to string
amount double
networkSymbol BaseNetworkSymbol
tokenSymbol ApTokenSymbol

Returns

Task<ApPayoutResult>