Skip to content

@lelantos-org/sdk / index / HttpOptions

Interface: HttpOptions ​

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:159

Transport options forwarded to the relayer, FMD and quoter clients.

Properties ​

fetch? ​

ts
optional fetch?: (input, init?) => Promise<Response>;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:160

MDN Reference

Parameters ​

ParameterType
inputRequestInfo | URL
init?RequestInit

Returns ​

Promise<Response>


headers? ​

ts
optional headers?: Readonly<Record<string, string>>;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:170

Added to every request, e.g. an API gateway key.


onRetry? ​

ts
optional onRetry?: (info) => void;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:168

Must not throw; a throw is logged and swallowed.

Parameters ​

ParameterType
infoRetryInfo

Returns ​

void


retries? ​

ts
optional retries?: number;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:166

Additional attempts after the first. Submits retry only on no response, 429 and 503.


submitTimeoutMs? ​

ts
optional submitTimeoutMs?: number;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:164

Per-attempt deadline for spend submits. Overrides preset.submitTimeoutMs.


timeoutMs? ​

ts
optional timeoutMs?: number;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:162

Per-attempt deadline for reads and estimates.