TypeScript Types
TypeScript types and interfaces of Azoth SDK
Main Types
AzothSDK
AzothSDKThe main SDK class for interacting with the AzothPay Protocol.
class AzothSDK {
static create(
provider: ethers.Provider | ethers.Signer,
network?: NetworkName,
tokenSymbol?: TokenSymbol,
contractVersion?: string
): AzothSDK;
static getAvailableNetworks(): NetworkName[];
static getAvailableTokens(network: NetworkName): TokenSymbol[];
}NetworkName
NetworkNameType of supported networks
TokenSymbol
TokenSymbolType for supported token symbols.
RatePeriod
RatePeriodEnum for time periods of rates.
Data Interfaces
UserInfo
UserInfoInterface for user information.
Subscription
SubscriptionInterface for subscription information.
SubscriptionInfo
SubscriptionInfoInterface for detailed subscription information.
Type Usage Examples
Creating a Typed Instance
Working with User Information
Working with Subscriptions
Checking Subscriptions
Utility Types
BigNumberish
BigNumberishType for numbers that can be converted to BigNumber.
TransactionResponse
TransactionResponseType for ethers.js transaction responses.
Last updated