Skip to main content

useAccounts

Hook for getting the list of accounts stored in the wallet.

Usage

import { useAccounts } from '@kibisis/katavault-react';

function Accounts() {
const accounts = useAccounts();

return accounts.map(({ address, name }) => (
<div>
<p>Address: {address}</p>
<p>Name: {name ?? '-'}</p>
</div>
));
}

Returns

Account[]

The list of accounts stored in the wallet.

See also