DiscoverOptions
Defined in: keyring.ts:773
Options for Keyring.discoverAccounts: how to tell a used account and when to stop probing.
Properties
Section titled “Properties”gapLimit?
Section titled “gapLimit?”
optionalgapLimit?:number
Defined in: keyring.ts:777
Unused accounts in a row before stopping. Default 1 (MetaMask / Phantom); BIP-44 says 20 for addresses.
isUsed
Section titled “isUsed”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.
Parameters
Section titled “Parameters”addresses
Section titled “addresses”Partial<Record<ChainKey, string>>
number
Returns
Section titled “Returns”Promise<boolean>
maxIndex?
Section titled “maxIndex?”
optionalmaxIndex?:number
Defined in: keyring.ts:779
Highest index probed. Default 20.