{s}omniamarkets

@somnia-chain/markets-sdk


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

Function: creditOf()

creditOf(operatorId, hub, client): Promise<bigint>

Defined in: oracleHub.ts:143

An operator's accrued WITHDRAWABLE surplus credit on the hub (§8e): the Σ reserve − charged released when resolved markets metered under their earmark. The only balance withdraw may draw from. Pure chain read.

Parameters

operatorId

number

hub

`0x${string}`

client

Returns

Promise<bigint>