{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: OperatorAdminConfig

Defined in: operatorAdmin.ts:30

Signer + target config for an OperatorAdmin (reached via client.createOperatorAdmin(config)). Pass exactly one signer source: walletClient, account, or privateKey.

Properties

walletClient?

optional walletClient?: object

Defined in: operatorAdmin.ts:32

A pre-built signer (e.g. a browser/wagmi wallet over an injected provider).


account?

optional account?: `0x${string}` | Account

Defined in: operatorAdmin.ts:34

A local signing account (e.g. from viem's privateKeyToAccount).


privateKey?

optional privateKey?: `0x${string}`

Defined in: operatorAdmin.ts:36

Private key — the SDK derives the account.


publicClient?

optional publicClient?: object

Defined in: operatorAdmin.ts:38

Read client for receipts. Defaults to the client's WebSocket client.


marketsCore?

optional marketsCore?: `0x${string}`

Defined in: operatorAdmin.ts:40

MarketsCore address override. Defaults to config.addresses.marketsCore.


gas?

optional gas?: bigint

Defined in: operatorAdmin.ts:45

Default gas ceiling per tx.

Default Value

10_000_000n