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