Skip to content

@lelantos-org/sdk / index / FeeAboveLimitError

Class: FeeAboveLimitError ​

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:146

The relayer quoted a fee the caller's limit does not allow. Raise the limit, wait for gas to fall, or use another relayer.

Nothing but this limit bounds the relayer's quote, so an operation that runs unattended should set one. Checked before proving or signing: nothing was built, leased or sent. retryable, since a quote follows gas and may fall back under the limit.

Extends ​

Constructors ​

Constructor ​

ts
new FeeAboveLimitError(args, opts?): FeeAboveLimitError;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:156

Parameters ​

ParameterType
args{ asset: AssetId; kind: FeeQuoteKind; limit?: CircuitAmount; quoted: CircuitAmount; source: FeeLimitSource; }
args.assetAssetId
args.kind?FeeQuoteKind
args.limit?CircuitAmount
args.quoted?CircuitAmount
args.source?FeeLimitSource
opts?WalletErrorOptions

Returns ​

FeeAboveLimitError

Overrides ​

WalletError.constructor

Properties ​

asset ​

ts
readonly asset: AssetId;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:148

The asset the fee was quoted in.


cause? ​

ts
optional cause?: unknown;

Defined in: typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

WalletError.cause


code ​

ts
readonly code: "FEE_ABOVE_LIMIT";

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:39

Inherited from ​

WalletError.code


context ​

ts
readonly context: ErrorContext;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:46

Inherited from ​

WalletError.context


details? ​

ts
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 ​

WalletError.details


kind ​

ts
readonly kind: FeeQuoteKind;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:155

The operation priced.


limit? ​

ts
readonly optional limit?: CircuitAmount;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:152

The maxFee exceeded, in circuit units of asset. Absent for acceptRelayerFee.


message ​

ts
message: string;

Defined in: typescript/lib/lib.es5.d.ts:1077

Inherited from ​

WalletError.message


name ​

ts
name: string;

Defined in: typescript/lib/lib.es5.d.ts:1076

Inherited from ​

WalletError.name


quoted ​

ts
readonly quoted: CircuitAmount;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:150

What the relayer quoted, in circuit units of asset.


retryable ​

ts
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 ​

WalletError.retryable


source ​

ts
readonly source: FeeLimitSource;

Defined in: @lelantos-org/sdk/dist/errors/funds.d.ts:153


stack? ​

ts
optional stack?: string;

Defined in: typescript/lib/lib.es5.d.ts:1078

Inherited from ​

WalletError.stack

Methods ​

withContext() ​

ts
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 ​

ParameterType
extraErrorContext

Returns ​

this

Inherited from ​

WalletError.withContext