Skip to main content

Type Alias: IWalletClientConfig

type IWalletClientConfig: IClientBaseConfig & object;

The type representing the config for the basic wallet.

Type declaration

signer

signer: ISigner;

An instance of Signer is used to sign messages. If a Signer is absent from the config, messages should be signed explicitly before being passed to the client.

Example

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

const signer = new Signer();

const client = new WalletClient({
endpoint: 'http://127.0.0.1:8529',
signer: signer
})

Defined

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