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 { HttpTransport } from '@nilfoundation/niljs';

const transport = new HttpTransport();

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

Defined

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