Skip to main content
Version: 11.x

Type Alias: RpcProviderOptions

RpcProviderOptions = object & PluginConfig

Defined in: src/provider/types/configuration.type.ts:9

Type Declaration​

nodeUrl?​

optional nodeUrl?: string | NetworkName

retries?​

optional retries?: waitForTransactionOptions["retries"]

Define the number of retries for waitForTransaction

transactionRetryIntervalFallback?​

optional transactionRetryIntervalFallback?: number

Define the time interval between retries in milliseconds

headers?​

optional headers?: object

Define the headers

blockIdentifier?​

optional blockIdentifier?: BlockIdentifier

chainId?​

optional chainId?: StarknetChainId

specVersion?​

optional specVersion?: SupportedRpcVersion

waitMode?​

optional waitMode?: boolean

baseFetch?​

optional baseFetch?: WindowOrWorkerGlobalScope["fetch"]

transport?​

optional transport?: RpcTransport

Carries JSON-RPC envelopes to the node. Defaults to an HttpTransport built from nodeUrl, headers and baseFetch, so leaving it unset keeps the historical behaviour.

resourceBoundsOverhead?​

optional resourceBoundsOverhead?: ResourceBoundsOverhead | false

batch?​

optional batch?: false | number