Skip to content

@gala-chain/clientAPI


API > HFClient

Class: HFClient

Contents

Extends

Constructors

new HFClient(resolvedBuilder, userId, contractConfig, createContractPromise)

new HFClient(resolvedBuilder, userId, contractConfig, createContractPromise): HFClient

Parameters

resolvedBuilder: HFClientBuilder

userId: string

contractConfig: ContractConfig

createContractPromise: (userId) => Promise\<object>

Overrides

ChainClient.constructor

Source

hf/HFClient.ts:24

Properties

builder

readonly builder: Promise\<ChainClientBuilder>

Inherited from

ChainClient.builder

Source

generic/ChainClient.ts:28


contractConfig

readonly contractConfig: ContractConfig

Inherited from

ChainClient.contractConfig

Source

generic/ChainClient.ts:30


contractPromise

private contractPromise: undefined | Promise\<object>

Source

hf/HFClient.ts:22


createContractPromise

private readonly createContractPromise: (userId) => Promise\<object>

Parameters

userId: string

Source

hf/HFClient.ts:28


orgMsp

readonly orgMsp: string

Inherited from

ChainClient.orgMsp

Source

generic/ChainClient.ts:31


resolvedBuilder

private resolvedBuilder: HFClientBuilder

Source

hf/HFClient.ts:25


userId

readonly userId: string

Inherited from

ChainClient.userId

Source

generic/ChainClient.ts:29

Accessors

contract

get contract(): Promise\<Contract>

Source

hf/HFClient.ts:41

Methods

disconnect()

disconnect(): Promise\<void>

Overrides

ChainClient.disconnect

Source

hf/HFClient.ts:49


evaluateTransaction()

evaluateTransaction\<T>(method, dtoOrResp?, resp?): Promise\<GalaChainResponse\<T>>

Type parameters

T

Parameters

method: string

dtoOrResp?: ChainCallDTO | ClassType\<Inferred\<T>>

resp?: ClassType\<Inferred\<T>>

Overrides

ChainClient.evaluateTransaction

Source

hf/HFClient.ts:78


extendAPI()

extendAPI\<T>(apiHandlerFn): HFClient & T

Type parameters

T extends object

Parameters

apiHandlerFn: (_) => T

Inherited from

ChainClient.extendAPI

Source

generic/ChainClient.ts:65


forUser()

forUser(userId): ChainClient

Parameters

userId: string

Overrides

ChainClient.forUser

Source

hf/HFClient.ts:37


submitTransaction()

submitTransaction\<T>(method, dtoOrResp?, resp?): Promise\<GalaChainResponse\<T>>

Type parameters

T

Parameters

method: string

dtoOrResp?: ChainCallDTO | ClassType\<Inferred\<T>>

resp?: ClassType\<Inferred\<T>>

Overrides

ChainClient.submitTransaction

Source

hf/HFClient.ts:59