Create a new cloud account. Returns payment URL that should be opened.
Create a new local account.
Delete local account.
List ledgers.
Login.
Attempt to pull and login to an existing cloud account.
StaticinitConfigure and build a new argantom core instance.
Argantom core state persistence.
State Management
Argantom core manages account state and persistance both device locally and optionally on a cloud service.
The Core.init constructor takes a CoreStateCb callback function with CoreState data, or you can call Core.getState directly.
When building an application, you'll want to pay attention to the CoreState components in order. First CoreState.accountState, second CoreState.cloudState, and finally, the CoreState.ledgerUpdate timestamp.
AccountState
CloudState
ledgerUpdate
This timestamp indicates ledger data has changed. If the value is strictly greater than the last value when the UI was rendered, the UI should be re-rendered to reflect updated ledger data.