Skip to content

@gala-chain/clientAPI


API > CAClient

Class: CAClient

Contents

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

hf/CAClient.ts:29

Properties

adminId

readonly adminId: string

Source

hf/CAClient.ts:26


affiliation

readonly affiliation: string

Source

hf/CAClient.ts:23


asLocalhost

readonly asLocalhost: boolean

Source

hf/CAClient.ts:22


caClient

private readonly caClient: FabricCAServices

Source

hf/CAClient.ts:27


caHostName

readonly caHostName: string

Source

hf/CAClient.ts:21


enrolledAdmin

readonly enrolledAdmin: Promise\<Identity>

Source

hf/CAClient.ts:25


orgMsp

readonly orgMsp: string

Source

hf/CAClient.ts:20


wallet

readonly wallet: Promise\<Wallet>

Source

hf/CAClient.ts:24

Methods

getIdentityOrRegisterUser()

getIdentityOrRegisterUser(userId): Promise\<Identity>

Parameters

userId: string

Source

hf/CAClient.ts:55


isReady()

isReady(): Promise\<boolean>

Source

hf/CAClient.ts:50