@gala-chain/connect ∙ API
API > SigningClient
Class: SigningClient
Contents
- Extends
- Constructors
- new SigningClient(privateKey, options)
- Properties
- options
- wallet
- Accessors
- ethereumAddress
- galaChainAddress
- Methods
- calculatePersonalSignPrefix()
- getPublicKey()
- sign()
- submit()
Extends
Constructors
new SigningClient(privateKey, options)
new SigningClient(
privateKey
,options
?):SigningClient
Parameters
▪ privateKey: string
▪ options?: GalaChainProviderOptions
Overrides
Source
chain-connect/src/customClients/SigningClient.ts:42
Properties
options
protected
options?:GalaChainProviderOptions
Inherited from
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
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
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