Skip to content

Reference

Utils — read scope

ledgerReadScope normalizes optional readAs into the object spread onto ledger read helpers.

ledgerReadScope(params?: ReadScopeParams) returns { readAs } when provided, otherwise {}, so callers can ...ledgerReadScope({ readAs }) into get*AsOcf / readSingleContract style functions.

See also

Source