Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

getAllAccountInfo

List every account in the factory, paginated.

Signature

function getAllAccountInfo(
  client: Client,
  parameters: {
    startAfter?: Address
    limit?: number
    height?: number
  },
): Promise<Record<Address, AccountInfo>>

Example

import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
 
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const accounts = await client.getAllAccountInfo({ limit: 100 })

Parameters

startAfterAddress, optional. Address to start after (exclusive).

limitnumber, optional. Maximum entries to return.

heightnumber, optional. Block height. Default 0 (latest).

Returns

Record<Address, AccountInfo> — map of address to { index, owner }.

See also