Keychain
The Keychain
class provides methods to extract the numerical value out of any currency representation by normalising the input and removing any locale specific rules like symbols and use of commas.
Importing the Keychain class
import { Keychain } from "@arkecosystem/platform-sdk-crypto";
Get an account from the keychain
Keychain.get('your-app-name', 'account-id');
Set an account in the keychain with the given password
Keychain.set('your-app-name', 'account-id', 'password');
Forget an account from the keychain
Keychain.forget('your-app-name', 'account-id');
Last updated 3 months ago
Edit Page