@gala-chain/client ∙ API
API > CAClient
Class: CAClient
Contents
- Constructors
- new CAClient(orgMsp, adminId, adminSecret, connectionProfile)
- Properties
- adminId
- affiliation
- asLocalhost
- caClient
- caHostName
- enrolledAdmin
- orgMsp
- wallet
- Methods
- getIdentityOrRegisterUser()
- isReady()
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
>
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
Source
isReady()
isReady():
Promise
\<boolean
>