MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / getPrimaryKeyringMnemonic

Method getPrimaryKeyringMnemonic

app/core/Engine.ts:714–723  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712 * Gets the mnemonic of the user's primary keyring.
713 */
714 const getPrimaryKeyringMnemonic = () => {
715 const [keyring]: any = keyringController.getKeyringsByType(
716 KeyringTypes.hd,
717 );
718 if (!keyring.mnemonic) {
719 throw new Error('Primary keyring mnemonic unavailable.');
720 }
721
722 return keyring.mnemonic;
723 };
724
725 const getAppState = () => {
726 const state = AppState.currentState;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected