Skip to content

@gala-chain/clientAPI


API > RestApiClientBuilder

Class: RestApiClientBuilder

Contents

Extends

Constructors

new RestApiClientBuilder(restApiUrl, orgMsp, credentials, restApiConfig)

new RestApiClientBuilder(restApiUrl, orgMsp, credentials, restApiConfig): RestApiClientBuilder

Parameters

restApiUrl: string

orgMsp: string

credentials: RestApiAdminCredentials

restApiConfig: RestApiConfig

Overrides

ChainClientBuilder.constructor

Source

rest-api/RestApiClientBuilder.ts:30

Properties

credentials

readonly credentials: RestApiAdminCredentials

Source

rest-api/RestApiClientBuilder.ts:33


orgMsp

readonly orgMsp: string

Source

rest-api/RestApiClientBuilder.ts:32


restApiConfig

readonly restApiConfig: RestApiConfig

Source

rest-api/RestApiClientBuilder.ts:34


restApiUrl

readonly restApiUrl: string

Source

rest-api/RestApiClientBuilder.ts:31

Methods

ensureInitializedRestApi()

private ensureInitializedRestApi(retriesLeft): Promise\<void>

Parameters

retriesLeft: number= 50

Source

rest-api/RestApiClientBuilder.ts:39


forContract()

forContract(config): ChainClient

Parameters

config: ContractConfig

Overrides

ChainClientBuilder.forContract

Source

rest-api/RestApiClientBuilder.ts:103


getContractApisFromFabloRest()

private getContractApisFromFabloRest(): Promise\<SetContractApiParams[]>

Source

rest-api/RestApiClientBuilder.ts:85


getContractApisFromGCRestApi()

private getContractApisFromGCRestApi(): Promise\<SetContractApiParams[]>

Source

rest-api/RestApiClientBuilder.ts:99


shouldUseFabloRest()

private shouldUseFabloRest(): Promise\<boolean>

Source

rest-api/RestApiClientBuilder.ts:76