@gala-chain/client ∙ API
API > HFClientBuilder
Class: HFClientBuilder
Contents
- Extends
- Constructors
- new HFClientBuilder(orgMsp, adminId, adminSecret, connectionProfile)
- Properties
- asLocalhost
- caClient
- connectionProfile
- orgMsp
- useServiceDiscovery
- Methods
- buildConnectedGateway()
- forContract()
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
Properties
asLocalhost
readonly
asLocalhost:boolean
Source
caClient
private
readonly
caClient:CAClient
Source
connectionProfile
private
readonly
connectionProfile:Record
\<string
,unknown
>
Source
orgMsp
readonly
orgMsp:string
Source
useServiceDiscovery
readonly
useServiceDiscovery:boolean
Source
Methods
buildConnectedGateway()
private
buildConnectedGateway(userId
):Promise
\<Gateway
>
Parameters
▪ userId: string
Source
forContract()
forContract(
cfg
):HFClient
Parameters
▪ cfg: ContractConfig
Overrides
ChainClientBuilder
.forContract