@somnia-chain/markets-sdk / index / SignerRequiredError
Class: SignerRequiredError
Defined in: packages/sdk/src/errors.ts:144
An authenticated (writing) method was called on a read-only client.
Details
Construct the exchange with a privateKey, an account, or a
walletClient to unlock writes. Distinct from NotConfiguredError:
nothing is missing from the addresses, the client simply has no signer.
Extends
Constructors
Constructor
new SignerRequiredError(
operation):SignerRequiredError
Defined in: packages/sdk/src/errors.ts:152
Creates a signer-required error for one authenticated operation.
Details
operation: The method that needs a signer (e.g."createOrder").
Parameters
operation
string
Returns
SignerRequiredError
Overrides
SomniaMarketsError.constructor
Properties
operation
readonlyoperation:string
Defined in: packages/sdk/src/errors.ts:152