function listAccounts(client, signer, params): Promise<{}>;Defined in: account-kit/wallet-client/src/client/actions/listAccounts.ts:50
Lists all smart accounts for a given signer using the wallet API client.
// Fetch the first page of accounts
const firstPage = await client.listAccounts({
signerAddress: "0x123...",
limit: 10,
});
// If an 'after' cursor exists, use it to fetch the next page
const nextPage = await client.listAccounts({
signerAddress: "0x123...",
limit: 10,
after: firstPage.meta.after,
});| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
|
| The signer for which to list accounts |
| Parameters for listing accounts |
Promise<{
}>
A Promise that resolves to the list of accounts and pagination metadata