Skip to content
docs

DiscoverOptions

Defined in: keyring.ts:773

Options for Keyring.discoverAccounts: how to tell a used account and when to stop probing.

optional gapLimit?: number

Defined in: keyring.ts:777

Unused accounts in a row before stopping. Default 1 (MetaMask / Phantom); BIP-44 says 20 for addresses.


isUsed: (addresses, index) => Promise<boolean>

Defined in: keyring.ts:775

Whether account index (its addresses per chain) has balance or history. The app supplies it — the SDK has no indexer.

Partial<Record<ChainKey, string>>

number

Promise<boolean>


optional maxIndex?: number

Defined in: keyring.ts:779

Highest index probed. Default 20.