kin-android / kin.sdk / KinClient
class KinClient
An account manager for a KinAccount.
Name | Summary |
---|---|
<init> | Build KinClient object.KinClient(context: Context, environment: Environment , appId: String , storeKey: String ) For more details please look at KinClient KinClient(context: Context, environment: Environment , appId: String ) |
Name | Summary |
---|---|
accountCount | Returns the number of existing accountsval accountCount: Int |
appId | val appId: String |
environment | val environment: Environment |
minimumFee | Get the current minimum fee that the network charges per operation. This value is expressed in stroops.val minimumFee: Request < Long > |
minimumFeeSync | Get the current minimum fee that the network charges per operation. This value is expressed in stroops.val minimumFeeSync: Long |
storeKey | val storeKey: String |
Name | Summary |
---|---|
addAccount | Creates and adds an account.fun addAccount(): KinAccount |
clearAllAccounts | Deletes all accounts.fun clearAllAccounts(): Unit |
deleteAccount | Deletes the account at input index (if it exists)fun deleteAccount(index: Int ): Boolean |
getAccount | Returns an account at input index.fun getAccount(index: Int ): KinAccount ? |
getAccountByPublicAddress | fun getAccountByPublicAddress(accountId: String ): KinAccount ? |
hasAccount | fun hasAccount(): Boolean |
importAccount | Import an account from a JSON-formatted string.fun importAccount(exportedJson: String , passphrase: String ): KinAccount |