@gala-chain/connect ∙ API
API > GalaChainProvider
Class: abstract
GalaChainProvider
Contents
- Extended By
- Constructors
- new GalaChainProvider(options)
- Properties
- legacyCredentials
- options
- Methods
abstract
sign()- submit()
Extended By
Constructors
new GalaChainProvider(options)
new GalaChainProvider(
options
?):GalaChainProvider
Parameters
▪ options?: GalaChainProviderOptions
Source
chain-connect/src/GalaChainClient.ts:39
Properties
legacyCredentials
private
legacyCredentials:Record
\<string
,string
>
Source
chain-connect/src/GalaChainClient.ts:37
options
protected
options?:GalaChainProviderOptions
Source
chain-connect/src/GalaChainClient.ts:39
Methods
abstract
sign()
abstract
sign\<T
>(method
,dto
,signingType
?):Promise
\<T
&object
>
Type parameters
▪ T extends object
Parameters
▪ method: string
▪ dto: T
▪ signingType?: SigningType
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