setAccountNameByAddress
Updates the name of the account.
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.setAccountNameByAddress({
address: 'SH2KEL633QIJLURBOOJTIKR5EIIYR4A2VYZC2DB6ZD4ZZL6XHYFBETEOGU',
name: 'New name',
});
Parameters
params
The address of the account and the new name to set.
Throws
NotAuthenticatedError
If the provider has not been authenticated.