Skip to content

@gala-chain/connectAPI


API > PresignedClient

Class: PresignedClient

Use this provider when you simply want to forward presigned requests, or requests that do not require a signature

Contents

Extends

Constructors

new PresignedClient(options)

new PresignedClient(options?): PresignedClient

Parameters

options?: GalaChainProviderOptions

Overrides

GalaChainProvider.constructor

Source

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

Properties

options

protected options?: GalaChainProviderOptions

Inherited from

GalaChainProvider.options

Source

chain-connect/src/GalaChainClient.ts:39

Methods

sign()

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

Type parameters

U extends object

Parameters

_method: string

payload: U & object

Overrides

GalaChainProvider.sign

Source

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


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