Skip to main content
Version: 11.x

Interface: ProviderOptions

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

Extends​

Properties​

nodeUrl?​

optional nodeUrl?: string

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

Inherited from​

RpcProviderOptions.nodeUrl


retries?​

optional retries?: number

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

Define the number of retries for waitForTransaction

Inherited from​

RpcProviderOptions.retries


transactionRetryIntervalFallback?​

optional transactionRetryIntervalFallback?: number

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

Define the time interval between retries in milliseconds

Inherited from​

RpcProviderOptions.transactionRetryIntervalFallback


headers?​

optional headers?: object

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

Define the headers

Inherited from​

RpcProviderOptions.headers


blockIdentifier?​

optional blockIdentifier?: BlockIdentifier

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

Inherited from​

RpcProviderOptions.blockIdentifier


chainId?​

optional chainId?: "0x534e5f4d41494e" | "0x534e5f5345504f4c4941"

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

Inherited from​

RpcProviderOptions.chainId


specVersion?​

optional specVersion?: "0.9.0" | "0.10.0" | "0.10.2" | "0.10.3" | "0.10.4"

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

Inherited from​

RpcProviderOptions.specVersion


waitMode?​

optional waitMode?: boolean

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

Inherited from​

RpcProviderOptions.waitMode


baseFetch?​

optional baseFetch?: (input, init?) => Promise<Response>

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

MDN Reference

Parameters​

input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Inherited from​

RpcProviderOptions.baseFetch


transport?​

optional transport?: RpcTransport

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

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.

Inherited from​

RpcProviderOptions.transport


resourceBoundsOverhead?​

optional resourceBoundsOverhead?: false | ResourceBoundsOverhead

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

Inherited from​

RpcProviderOptions.resourceBoundsOverhead


batch?​

optional batch?: number | false

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

Inherited from​

RpcProviderOptions.batch


plugins?​

optional plugins?: false | StarknetPlugin<any, any>[]

Defined in: src/plugins/types.ts:106

Plugins to install.

  • undefined (default): install defaultPlugins (starknetId, brotherId, fastExecute, paymaster)
  • explicit array: install exactly these plugins
  • false: no plugins

On an Account, the paymaster option always installs the paymaster plugin, even with false or with a list without it.

Inherited from​

RpcProviderOptions.plugins