Skip to content
docs

BunkerJudgeOptions

Defined in: judge.ts:58

What judgeBunker asks the app.

R extends BunkerRequest = BunkerRequest

optional isFullSweep?: (request) => boolean | Promise<boolean>

Defined in: judge.ts:71

Does this send move the whole balance of its asset? A partial send exposes the key and leaves the rest behind it. Without this check every send is a partial-spend.

R

boolean | Promise<boolean>


optional isSealedDestination?: (chain, address) => boolean | Promise<boolean>

Defined in: judge.ts:66

Is address a sealed address of this wallet: derived from the same seed, never used on-chain and absent from the ledger? Use nextSealedIndex to pick one, or a vault address.

Without it no address counts as sealed: every send of a protected account breaks unsealed-destination (refused in enforce, reported in warn). An app that only warns can leave it out.

string

string

boolean | Promise<boolean>