Interface ExperimentalClientOptions

Experimental Client options. Extends the historic options without changing Client.

interface ExperimentalClientOptions {
    addressPrefix?: string;
    backoff?: ((tries: number) => number);
    chainId?: string;
    consoleOnFailover?: boolean;
    coreClient?: CoreClientLike;
    coreModule?: CoreModuleLike;
    failoverThreshold?: number;
    nodeSelectionStrategy?: any;
    rpcTransport?: RpcTransportKind;
    timeout?: number;
}

Hierarchy (view full)

Properties

addressPrefix?: string

Blurt address prefix. Defaults to main network: BLT

backoff?: ((tries: number) => number)

Retry backoff function, returns milliseconds. Defaults to dblurt's built-in capped quadratic backoff.

chainId?: string

Blurt chain id. Defaults cd8d90f29ae273abec3eaa7731e25934c63eb654d55080caff2ebb7f5df6381f

consoleOnFailover?: boolean

Whether a console.log should be made when RPC failed over to another one

coreClient?: CoreClientLike

Prebuilt blurt-rpc-core compatible client, useful for tests and custom transports.

coreModule?: CoreModuleLike

Preloaded blurt-rpc-core module, useful for CommonJS integration tests.

failoverThreshold?: number

Specifies the amount of times the urls (RPC nodes) should be iterated and retried in case of timeout errors. (important) Requires url parameter to be an array (string[])! Can be set to 0 to iterate and retry forever. Defaults to 3 rounds.

nodeSelectionStrategy?: any

Node selection strategy forwarded to blurt-rpc-core.

Defaults to sticky to preserve dblurt Client compatibility. Modern blurt-rpc-core strategies such as round-robin remain available only as explicit opt-in choices.

rpcTransport?: RpcTransportKind

Internal migration switch. Defaults to legacy; core is experimental opt-in and delegates only JSON-RPC transport to blurt-rpc-core.

timeout?: number

how long to wait in milliseconds before giving up on a rpc call. Defaults to 60 * 1000 ms.