Reference / Modules / client / BaseSigner
Class: BaseSigner
client.BaseSigner
Hierarchy
-
BaseSigner
Implements
Table of contents
Constructors
Properties
Methods
- buildAttributes
- buildMessage
- buildSignAndSendFunction
- buildSignAndSendPromise
- signAndSend
- signRaw
- signToHex
- signerCallback
Constructors
constructor
• new BaseSigner(signAndSendStrategy?
): BaseSigner
Parameters
Name | Type |
---|---|
signAndSendStrategy? | SignAndSendStrategy |
Returns
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
Name | Type |
---|---|
parameters | SignRawParameters |
Returns
string
[]
Defined in
packages/client/src/Signer.ts:108
buildMessage
▸ buildMessage(parameters
): string
Parameters
Name | Type |
---|---|
parameters | SignRawParameters |
Returns
string
Defined in
packages/client/src/Signer.ts:104
buildSignAndSendFunction
▸ buildSignAndSendFunction(parameters
): Promise
<SignAndSendFunction
>
Parameters
Name | Type |
---|---|
parameters | SignParameters |
Returns
Promise
<SignAndSendFunction
>
Defined in
packages/client/src/Signer.ts:130
buildSignAndSendPromise
▸ buildSignAndSendPromise(parameters
): Promise
<SuccessfulSubmission
>
Parameters
Name | Type |
---|---|
parameters | SignParameters & { signAndSend : SignAndSendFunction } |
Returns
Promise
<SuccessfulSubmission
>
Defined in
packages/client/src/Signer.ts:132
signAndSend
▸ signAndSend(parameters
): Promise
<SuccessfulSubmission
>
Parameters
Name | Type |
---|---|
parameters | SignParameters |
Returns
Promise
<SuccessfulSubmission
>
Implementation of
FullSigner.signAndSend
Defined in
packages/client/src/Signer.ts:114
signRaw
▸ signRaw(parameters
): Promise
<TypedSignature
>
Parameters
Name | Type |
---|---|
parameters | SignRawParameters |
Returns
Promise
<TypedSignature
>
Implementation of
FullSigner.signRaw
Defined in
packages/client/src/Signer.ts:97
signToHex
▸ signToHex(signerId
, message
): Promise
<TypedSignature
>
Parameters
Name | Type |
---|---|
signerId | ValidAccountId |
message | string |
Returns
Promise
<TypedSignature
>
Defined in
packages/client/src/Signer.ts:102
signerCallback
▸ signerCallback(params
): void
Parameters
Name | Type |
---|---|
params | Object |
params.next? | (result : ISubmittableResult ) => void |
params.registry | Registry |
params.reject | (error : any ) => void |
params.resolve | (result : SuccessfulSubmission ) => void |
params.result | ISubmittableResult |
params.signAndSendStrategy | SignAndSendStrategy |
params.submissionState | SubmissionState |
params.unsub | () => void |
Returns
void