{s}omniamarkets

@somnia-chain/markets-sdk


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

Interface: BalanceQuery

Defined in: reads.ts:619

A token to read a balance for in a getBalances batch. Omit id for a plain ERC-20 (balanceOf(account)); provide id to read an ERC-6909 outcome position (balanceOf(account, id)) on the outcome-token singleton token.

Properties

token

token: `0x${string}`

Defined in: reads.ts:621

ERC-20 token, or the ERC-6909 outcome-token singleton when id is set.


id?

optional id?: bigint

Defined in: reads.ts:623

ERC-6909 position id (yesId/noId). Absent → read token as a plain ERC-20.