Skip to content

@lelantos-org/sdk / core/errors / ErrorContext

Interface: ErrorContext โ€‹

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:14

Ambient facts about the operation that failed. Populated as the error travels outward, so a failure deep in a swap still reports the id of the operation and the hash of any transaction already broadcast.

Indexable โ€‹

ts
[k: string]: unknown

Properties โ€‹

method? โ€‹

ts
optional method?: string;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:25


op? โ€‹

ts
optional op?: string;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:18

Operation name, e.g. "deposit" or "swap:leg1".


opId? โ€‹

ts
optional opId?: string;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:16

Correlation id, minted once per wallet operation.


requestId? โ€‹

ts
optional requestId?: number;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:26


txHash? โ€‹

ts
optional txHash?: string;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:23

Hash of a transaction already broadcast when the failure occurred. Set only by callers that opt in; TxMiningError exposes it as a typed field.


url? โ€‹

ts
optional url?: string;

Defined in: @lelantos-org/sdk/dist/core/errors.d.ts:24

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub