scanExposure
scanExposure(
accounts,options):Promise<ExposureReport[]>
Defined in: scan.ts:81
The exposure of every account: what the address type allows, what this device signed (the ledger), and what the chain shows (the probes). A key the chain shows as used is recorded in the ledger, so the answer survives an RPC outage. An exposed key’s report lists every way the ledger knows it was exposed, the same on every later scan.
Probes query an RPC for every address, which links the addresses at that provider. Use the user’s own RPC where privacy matters.
Parameters
Section titled “Parameters”accounts
Section titled “accounts”readonly ScanAccount[]
options
Section titled “options”ledger
Section titled “ledger”() => number
probes?
Section titled “probes?”Record<string, ExposureProbe>
Returns
Section titled “Returns”Promise<ExposureReport[]>