kin-android / org.kin.sdk.base / KinAccountContextImpl
class KinAccountContextImpl :
KinAccountContextBase
,
KinAccountContext
Instantiate a KinAccountContextImpl to operate on a KinAccount when you have a PrivateKey Can be used to:
Name | Summary |
---|---|
ExistingAccountBuilder | Let’s you access the specified KinAccountclass ExistingAccountBuilder |
NewAccountBuilder | Creates a new KinAccountclass NewAccountBuilder |
Name | Summary |
---|---|
accountId | denoting the KinAccount to get information fromval accountId: Id |
executors | defines a set of executors to be usedval executors: ExecutorServices |
service | a service used to retrieve all account and payment dataval service: KinService |
storage | stores all account and payment data. @see KinFileStorage for provided implementation.val storage: Storage |
Name | Summary |
---|---|
clearStorage | fun clearStorage(clearCompleteCallback: Callback < Boolean >): Unit |
getAccount | Returns the account infofun getAccount(): Promise < KinAccount > |
getPaymentsForTransactionHash | fun getPaymentsForTransactionHash(transactionHash: TransactionHash , paymentsCallback: Callback < List < KinPayment >>): Unit |
maybeFetchAccountDetails | fun maybeFetchAccountDetails(): Promise < KinAccount > |
sendKinPayment | Send an amount of Kin to a destinationAccount to the Kin Blockchain for processing.fun sendKinPayment(amount: KinAmount , destinationAccount: Id, memo: KinMemo ): Promise < KinPayment > fun sendKinPayment(amount: KinAmount , destinationAccount: Id, memo: KinMemo , paymentCallback: Callback < KinPayment >): Unit |
sendKinPayments | fun sendKinPayments(payments: List < KinPaymentItem >, memo: KinMemo ): Promise < List < KinPayment >> fun sendKinPayments(payments: List < KinPaymentItem >, memo: KinMemo , paymentsCallback: Callback < List < KinPayment >>): Unit |