@lelantos-org/sdk / index / QuoteStaleError
Class: QuoteStaleError
Defined in: @lelantos-org/sdk/dist/errors/spend.d.ts:84
A quote no longer matches what the pool would do now: a yield index or the relayer's flush fee moved since it was made. The quote itself is intact (a tampered or malformed quote is INVALID_ARGUMENT). Nothing was sent. Retryable: request a new quote and run it.
Extends
WalletError<"QUOTE_STALE">
Constructors
Constructor
new QuoteStaleError(args, opts?): QuoteStaleError;Defined in: @lelantos-org/sdk/dist/errors/spend.d.ts:87
Parameters
| Parameter | Type |
|---|---|
args | { fields: readonly string[]; } |
args.fields | readonly string[] |
opts? | WalletErrorOptions |
Returns
QuoteStaleError
Overrides
Properties
cause?
optional cause?: unknown;Defined in: typescript/lib/lib.es2022.error.d.ts:26
Inherited from
code
readonly code: "QUOTE_STALE";Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:39
Inherited from
context
readonly context: ErrorContext;Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:46
Inherited from
details?
readonly optional details?: Readonly<Record<string, string | number | boolean>>;Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:48
Extra diagnostic scalars for this failure, when any.
Inherited from
fields
readonly fields: readonly string[];Defined in: @lelantos-org/sdk/dist/errors/spend.d.ts:86
The quoted figures the current state no longer reproduces, e.g. ["gross", "net"].
message
message: string;Defined in: typescript/lib/lib.es5.d.ts:1077
Inherited from
name
name: string;Defined in: typescript/lib/lib.es5.d.ts:1076
Inherited from
retryable
readonly retryable: boolean;Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:45
Whether the same call, unchanged, may succeed later without user action: a timeout, a 5xx, notes held by an earlier spend. false means retrying as-is will fail the same way.
Inherited from
stack?
optional stack?: string;Defined in: typescript/lib/lib.es5.d.ts:1078
Inherited from
Methods
withContext()
withContext(extra): this;Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:53
Merge additional context in place and return this for rethrowing.
Parameters
| Parameter | Type |
|---|---|
extra | ErrorContext |
Returns
this