@somnia-chain/markets-sdk / index / GetVaultBalanceParams
Interface: GetVaultBalanceParams
Defined in: packages/sdk/src/binary/portfolio.ts:484
Identifies one owner's claimable balance in one pool vault — see client.getVaultBalance.
Properties
vault
vault:
`0x${string}`
Defined in: packages/sdk/src/binary/portfolio.ts:486
The ERC20Vault address (the pool address).
owner
owner:
`0x${string}`
Defined in: packages/sdk/src/binary/portfolio.ts:488
The balance's owner.
token
token:
`0x${string}`
Defined in: packages/sdk/src/binary/portfolio.ts:490
The ERC-20 address (or the vault's native sentinel).
blockNumber?
optionalblockNumber?:bigint
Defined in: packages/sdk/src/binary/portfolio.ts:502
Read the balance as of this block instead of at head.
For an answer that combines this balance with other reads at one height: the withdrawable balance is contract state behind an append-only payout history, so there is no indexed entity to reconstruct it from at a past height, and serving this half at head would silently mix heights inside one response.
A recent block answers against a full node. An old one needs ARCHIVE state, and a node without it rejects the read rather than returning a wrong number.