Skip to content

@gala-chain/connectAPI


API > SigningClient

Class: SigningClient

Contents

Extends

Constructors

new SigningClient(privateKey, options)

new SigningClient(privateKey, options?): SigningClient

Parameters

privateKey: string

options?: GalaChainProviderOptions

Overrides

CustomClient.constructor

Source

chain-connect/src/customClients/SigningClient.ts:42

Properties

options

protected options?: GalaChainProviderOptions

Inherited from

CustomClient.options

Source

chain-connect/src/GalaChainClient.ts:39


wallet

private wallet: Wallet

Source

chain-connect/src/customClients/SigningClient.ts:40

Accessors

ethereumAddress

get ethereumAddress(): string

Source

chain-connect/src/customClients/SigningClient.ts:24


galaChainAddress

get galaChainAddress(): string

Source

chain-connect/src/customClients/SigningClient.ts:28

Methods

calculatePersonalSignPrefix()

calculatePersonalSignPrefix(payload): string

Parameters

payload: object

Inherited from

CustomClient.calculatePersonalSignPrefix

Source

chain-connect/src/GalaChainClient.ts:138


getPublicKey()

getPublicKey(): Promise\<object>

Overrides

CustomClient.getPublicKey

Source

chain-connect/src/customClients/SigningClient.ts:32


sign()

sign\<U>(method, payload, signingType): Promise\<U & object>

Type parameters

U extends object

Parameters

method: string

payload: U

signingType: SigningType= undefined

Overrides

CustomClient.sign

Source

chain-connect/src/customClients/SigningClient.ts:47


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

CustomClient.submit

Source

chain-connect/src/GalaChainClient.ts:53