Skip to main content

Type Alias: IClientBaseConfig

type IClientBaseConfig: object;

The client configuration that is shared between public and private clients.

Type declaration

shardId?

optional shardId: number;

The ID of the shard with which the client interacts.

Example

1

transport

transport: ITransport;

The transport is used to send requests to the network.

Example

import { MetaMaskTransport } from '@nilfoundation/niljs';

const transport = new MetaMaskTransport();

const client = new PublicClient({ transport, shardId: 1 });

Defined

@nilfoundation/niljs/src/clients/types/ClientConfigs.ts:7