Skip to content

@gala-chain/connectAPI


API > CustomClient

Class: abstract CustomClient

Contents

Extends

Constructors

new CustomClient(options)

new CustomClient(options?): CustomClient

Parameters

options?: GalaChainProviderOptions

Overrides

GalaChainProvider.constructor

Source

chain-connect/src/GalaChainClient.ts:130

Properties

abstract ethereumAddress

abstract ethereumAddress: string

Source

chain-connect/src/GalaChainClient.ts:135


abstract galaChainAddress

abstract galaChainAddress: string

Source

chain-connect/src/GalaChainClient.ts:136


options

protected options?: GalaChainProviderOptions

Inherited from

GalaChainProvider.options

Source

chain-connect/src/GalaChainClient.ts:39

Methods

calculatePersonalSignPrefix()

calculatePersonalSignPrefix(payload): string

Parameters

payload: object

Source

chain-connect/src/GalaChainClient.ts:138


abstract getPublicKey()

abstract getPublicKey(): Promise\<object>

Source

chain-connect/src/GalaChainClient.ts:134


abstract sign()

abstract sign\<T>(method, dto, signingType?): Promise\<T & object>

Type parameters

T extends object

Parameters

method: string

dto: T

signingType?: SigningType

Inherited from

GalaChainProvider.sign

Source

chain-connect/src/GalaChainClient.ts:48


submit()

submit\<T, U>(__namedParameters): Promise\<GalaChainResponseSuccess\<T>>

Type parameters

T

U extends object

Parameters

__namedParameters: object

__namedParameters.headers?: Record\<string, string>

__namedParameters.method: string

__namedParameters.payload: ConstructorArgs\<U>

__namedParameters.requestConstructor?: ClassConstructor\<ChainCallDTO>

__namedParameters.responseConstructor?: NonArrayClassConstructor\<T>

__namedParameters.sign?: boolean

__namedParameters.signingType?: SigningType

__namedParameters.url: string

Inherited from

GalaChainProvider.submit

Source

chain-connect/src/GalaChainClient.ts:53