Skip to content
docs

judgeBunker

judgeBunker<R>(request, options): Promise<BunkerRefusal | undefined>

Defined in: judge.ts:82

The Bunker rules for one request of a PROTECTED account: the rule it breaks, or undefined when it is the one thing such an account may do — a full sweep to a sealed address of the same wallet, started in the wallet itself. Whether the account is protected is the caller’s question (bunkerGate asks it).

Chain-neutral: it reads a BunkerRequest, so it needs no kit WriteIntent. bunkerPolicies judges through it.

R extends BunkerRequest

R

BunkerJudgeOptions<R>

Promise<BunkerRefusal | undefined>