HttpProviderOptions
Defined in: src/providers/web/HttpProvider.ts:48
Options accepted by createHttpProviderFactory.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
basePath? | string | Base URL prefix prepended to relative endpoint paths. Defaults to "". | src/providers/web/HttpProvider.ts:54 |
defaultHeaders? | Record<string, string> | Default headers applied to every request. | src/providers/web/HttpProvider.ts:58 |
fetch? | HttpFetch | Custom fetch implementation. Defaults to global fetch. | src/providers/web/HttpProvider.ts:56 |
id? | ProviderId | Provider id to register. Defaults to "http". Set to "https" for the HTTPS variant. | src/providers/web/HttpProvider.ts:50 |
secure? | boolean | Whether the provider should treat connections as TLS-only. Defaults to true when id === "https". | src/providers/web/HttpProvider.ts:52 |