Vana SDK - v4.1.0
    Preparing search index...

    Function tryGrantPermissions

    • grantPermissions for a grant record read back from the gateway: returns undefined instead of throwing when the scope list carries an entry this SDK version cannot interpret, so a grant with a newer operation still loads (with scopes intact) rather than failing the whole read.

      Parameters

      • scopes: readonly string[]

        A grant's scopes array, verbatim.

      Returns GrantPermission[] | undefined

      The grouped permissions, or undefined if any entry is uninterpretable.