removeAccount
Removes the account from the wallet for the specified address, if it exists.
Usage
- main.ts
import { voi } from '@kibisis/chains';
import { createKatavault } from '@kibisis/katavault-core';
const katavault = await createKatavault({
chains: [voi],
});
await katavault.authenticateWithPasskey({
user: {
name: 'Kibi',
username: 'kibi@kibis.is',
},
});
await katavault.removeAccount('SH2KEL633QIJLURBOOJTIKR5EIIYR4A2VYZC2DB6ZD4ZZL6XHYFBETEOGU');
Parameters
address
- Type:
string
The address of the account to remove from the wallet.
Throws
NotAuthenticatedError
If the provider has not been authenticated.