NOTE - Kin Agora service is no longer operational. This SDK can be used along with the open source Agora components to host your own Agora for a feeless UX
Flutter Package for using Kin Cryptocurrency. Based on the Kin Android SDK.
Library | Path | Description |
---|---|---|
kin_base |
/base |
The foundation library used by all other libraries in the system to support basic Kin operations:
|
design (WIP) |
/design |
Shared library components for creating consistent Kin user experiences. When creating a custom Kin experience, this library can be used to include standard UI components for displaying Kin prices, transactions, etc. |
spend (WIP) |
/spend |
The :spend library provides an out of the box model UI for spending Kin within an Android application. Specificy what you're buying, your account, tap confirm. Success. |
backup_restore |
/backup_restore |
The :backup-restore library provides an out of the box model UI for backing up and restoring wallets with a variety of implementations. |
var kin = Kin(production, appIndex, 'Example App',
onBalanceChange: _onBalanceChange,
onPayment: _onPayment,
onAccountContext: _onResolveAccountContext,
credentialUser: credentialUser,
credentialPass: credentialPass);
await kin.waitReady();
Now, this instance can be used to perform all the operations on the kin
blockchain.
var accountId = kin.createAccount();
var kinBackupRestore = KinBackupRestore();
var backupKeyPair = kinBackupRestore.importWallet(accountBackup, backupPass);
var kinContext = kin.getKinContext();
var account = await kinContext.getAccount(forceUpdate: true);
var accountId = await kin.importWallet(walletBackupJson, walletBackupPassword);
var transactions = await kinContext.getAllTransactionsHistory();