Skip to main content

Reference / Modules / client / BaseSigner

Class: BaseSigner

client.BaseSigner

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BaseSigner(signAndSendStrategy?): BaseSigner

Parameters

NameType
signAndSendStrategy?SignAndSendStrategy

Returns

BaseSigner

Defined in

packages/client/src/Signer.ts:87

Properties

signAndSendStrategy

Private signAndSendStrategy: SignAndSendStrategy

Defined in

packages/client/src/Signer.ts:95

Methods

buildAttributes

buildAttributes(parameters): string[]

Parameters

NameType
parametersSignRawParameters

Returns

string[]

Defined in

packages/client/src/Signer.ts:108


buildMessage

buildMessage(parameters): string

Parameters

NameType
parametersSignRawParameters

Returns

string

Defined in

packages/client/src/Signer.ts:104


buildSignAndSendFunction

buildSignAndSendFunction(parameters): Promise<SignAndSendFunction>

Parameters

NameType
parametersSignParameters

Returns

Promise<SignAndSendFunction>

Defined in

packages/client/src/Signer.ts:130


buildSignAndSendPromise

buildSignAndSendPromise(parameters): Promise<SuccessfulSubmission>

Parameters

NameType
parametersSignParameters & { signAndSend: SignAndSendFunction }

Returns

Promise<SuccessfulSubmission>

Defined in

packages/client/src/Signer.ts:132


signAndSend

signAndSend(parameters): Promise<SuccessfulSubmission>

Parameters

NameType
parametersSignParameters

Returns

Promise<SuccessfulSubmission>

Implementation of

FullSigner.signAndSend

Defined in

packages/client/src/Signer.ts:114


signRaw

signRaw(parameters): Promise<TypedSignature>

Parameters

NameType
parametersSignRawParameters

Returns

Promise<TypedSignature>

Implementation of

FullSigner.signRaw

Defined in

packages/client/src/Signer.ts:97


signToHex

signToHex(signerId, message): Promise<TypedSignature>

Parameters

NameType
signerIdValidAccountId
messagestring

Returns

Promise<TypedSignature>

Defined in

packages/client/src/Signer.ts:102


signerCallback

signerCallback(params): void

Parameters

NameType
paramsObject
params.next?(result: ISubmittableResult) => void
params.registryRegistry
params.reject(error: any) => void
params.resolve(result: SuccessfulSubmission) => void
params.resultISubmittableResult
params.signAndSendStrategySignAndSendStrategy
params.submissionStateSubmissionState
params.unsub() => void

Returns

void

Defined in

packages/client/src/Signer.ts:157