@somnia-chain/markets-sdk


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

Interface: WithdrawParams

Defined in: packages/sdk/src/oracleHub.ts:390

Parameters for OracleHubAdmin.withdraw.

Properties

operatorId

operatorId: number

Defined in: packages/sdk/src/oracleHub.ts:392

Operator whose WITHDRAWABLE credit to draw down. OWNER-gated on-chain.


amountWei

amountWei: bigint

Defined in: packages/sdk/src/oracleHub.ts:397

Wei to withdraw from the operator's accrued surplus credit (must be ≤ withdrawableOf(operatorId), else the hub reverts InsufficientCredit).


to

to: `0x${string}`

Defined in: packages/sdk/src/oracleHub.ts:399

Recipient of the native transfer.


gas?

optional gas?: bigint

Defined in: packages/sdk/src/oracleHub.ts:401

Gas-limit override for this tx (defaults to the admin config's gas).