Skip to content

@lelantos-org/sdk / index / Phase

Type Alias: Phase ​

ts
type Phase = 
  | "preparing"
  | "consolidating"
  | "proving"
  | "signing"
  | "submitting"
  | "broadcast"
  | "confirmed";

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:25

Progress of one operation, in order. Each operation emits the subset its kind has; see SpendPhase and DepositPhase.

  • preparing: validating, resolving assets and fees, selecting and leasing notes.
  • consolidating: autoConsolidate is merging notes first (a nested self-spend).
  • proving: building the proof.
  • signing: waiting on the EOA wallet (permit, approval or transaction prompt).
  • submitting: handed to the relayer (spends) or the RPC node (deposits).
  • broadcast: a transaction hash is known and the SDK is waiting for its receipt (deposits).
  • confirmed: mined. Spends reach it when the relayer answers, which it does only once mined.