Optional
cache?: ProviderCacheJsonOptional
fetch?: ((url: string, requestInit?: RequestInit, providerOptions?: Omit<ProviderOptions, "fetch">) => Promise<Response>)Custom fetch function to use for making requests.
Optional
requestInit: RequestInitOptional
providerOptions: Omit<ProviderOptions, "fetch">Optional
headers?: RequestInit["headers"]Custom headers to include in the request.
Optional
requestMiddleware to modify the request before it is sent. This can be used to add headers, modify the body, etc.
Optional
resourceResources cache for the given time [ms]. If set to -1, the cache will be disabled.
Optional
retryRetry options to use when fetching data from the node.
Optional
timeout?: numberTimeout [ms] after which every request will be aborted.
The cache can be passed in to avoid re-fetching the chain + node info.