@gala-chain/client • Readme | API
@gala-chain/client / CAClient
Class: CAClient
Constructors
new CAClient(orgMsp, adminId, adminSecret, connectionProfile)
new CAClient(
orgMsp
,adminId
,adminSecret
,connectionProfile
):CAClient
Parameters
• orgMsp: string
• adminId: string
• adminSecret: string
• connectionProfile: Record
\<string
, unknown
>
Returns
Source
Properties
adminId
readonly
adminId:string
Source
affiliation
readonly
affiliation:string
Source
asLocalhost
readonly
asLocalhost:boolean
Source
caClient
private
readonly
caClient:FabricCAServices
Source
caHostName
readonly
caHostName:string
Source
enrolledAdmin
readonly
enrolledAdmin:Promise
\<Identity
>
Source
orgMsp
readonly
orgMsp:string
Source
wallet
readonly
wallet:Promise
\<Wallet
>
Source
Methods
getIdentityOrRegisterUser()
getIdentityOrRegisterUser(
userId
):Promise
\<Identity
>
Parameters
• userId: string
Returns
Promise
\<Identity
>
Source
isReady()
isReady():
Promise
\<boolean
>
Returns
Promise
\<boolean
>