Skip to content

@gala-chain/clientAPI


API > HFClientBuilder

Class: HFClientBuilder

Contents

Extends

Constructors

new HFClientBuilder(orgMsp, adminId, adminSecret, connectionProfile)

new HFClientBuilder(orgMsp, adminId, adminSecret, connectionProfile): HFClientBuilder

Parameters

orgMsp: string

adminId: string

adminSecret: string

connectionProfile: Record\<string, unknown>

Overrides

ChainClientBuilder.constructor

Source

hf/HFClientBuilder.ts:24

Properties

asLocalhost

readonly asLocalhost: boolean

Source

hf/HFClientBuilder.ts:21


caClient

private readonly caClient: CAClient

Source

hf/HFClientBuilder.ts:22


connectionProfile

private readonly connectionProfile: Record\<string, unknown>

Source

hf/HFClientBuilder.ts:28


orgMsp

readonly orgMsp: string

Source

hf/HFClientBuilder.ts:25


useServiceDiscovery

readonly useServiceDiscovery: boolean

Source

hf/HFClientBuilder.ts:20

Methods

buildConnectedGateway()

private buildConnectedGateway(userId): Promise\<Gateway>

Parameters

userId: string

Source

hf/HFClientBuilder.ts:66


forContract()

forContract(cfg): HFClient

Parameters

cfg: ContractConfig

Overrides

ChainClientBuilder.forContract

Source

hf/HFClientBuilder.ts:54