Skip to content

@armada/sdk / index / TooFragmentedError

Class: TooFragmentedError ​

Defined in: src/errors.ts:153

A spend is so fragmented it needs more input notes than one atomic batch of supported-shape proofs can hold (planSpend's per-batch group cap). Splitting further would require multiple SEQUENTIAL transactions (consolidate-then-spend), which this pipeline does not do — the caller should consolidate the wallet's small notes first. Distinct from InsufficientBalanceError (enough value, too many notes).

Extends ​

Constructors ​

Constructor ​

new TooFragmentedError(message, options?): TooFragmentedError

Defined in: src/errors.ts:6

Parameters ​

message ​

string

options? ​
cause? ​

unknown

Returns ​

TooFragmentedError

Inherited from ​

ArmadaError.constructor

Properties ​

code ​

readonly code: "TOO_FRAGMENTED" = 'TOO_FRAGMENTED'

Defined in: src/errors.ts:154

Overrides ​

ArmadaError.code