Skip to main content
Version: Next

Interface: ProviderOptions

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

Extends

Properties

nodeUrl?

optional nodeUrl?: string

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

Inherited from

RpcProviderOptions.nodeUrl


retries?

optional retries?: number

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

Define the number of retries for waitForTransaction

Inherited from

RpcProviderOptions.retries


transactionRetryIntervalFallback?

optional transactionRetryIntervalFallback?: number

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

Define the time interval between retries in milliseconds

Inherited from

RpcProviderOptions.transactionRetryIntervalFallback


headers?

optional headers?: object

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

Define the headers

Inherited from

RpcProviderOptions.headers


blockIdentifier?

optional blockIdentifier?: BlockIdentifier

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

Inherited from

RpcProviderOptions.blockIdentifier


chainId?

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

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

Inherited from

RpcProviderOptions.chainId


specVersion?

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

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

Inherited from

RpcProviderOptions.specVersion


waitMode?

optional waitMode?: boolean

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

Inherited from

RpcProviderOptions.waitMode


baseFetch?

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

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

MDN Reference

Parameters

input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Inherited from

RpcProviderOptions.baseFetch


resourceBoundsOverhead?

optional resourceBoundsOverhead?: false | ResourceBoundsOverhead

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

Inherited from

RpcProviderOptions.resourceBoundsOverhead


batch?

optional batch?: number | false

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

Inherited from

RpcProviderOptions.batch


plugins?

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

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

Plugins to install.

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

Inherited from

RpcProviderOptions.plugins