@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / SignerRequiredError

Class: SignerRequiredError

Defined in: packages/sdk/src/errors.ts:127

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:131

Parameters

operation

string

The method that needs a signer (e.g. "createOrder").

Returns

SignerRequiredError

Overrides

SomniaMarketsError.constructor

Properties

operation

readonly operation: string

Defined in: packages/sdk/src/errors.ts:131

The method that needs a signer (e.g. "createOrder").