Swig TS — API References
    Preparing search index...

    Enumeration Permission

    Defines different types of permissions that can be granted to an authority in a Swig account.

    Index

    Enumeration Members

    All: 7

    Grants all available permissions. Use with caution.

    ManageAuthority: 8

    Grants the ability to manage other authorities and their permissions.

    None: 0

    No permission granted.

    Program: 3

    Grants permission to sign on behalf of the Swig account for a specific program.

    ProgramScope: 4

    Grants permission to act within the custom-defined ownership model of a specific program. Useful for developers implementing bespoke logic (e.g., NFTs, custom token programs).

    SolLimit: 1

    Allows a one-time transfer of a specified amount of SOL.

    SolRecurringLimit: 2

    Allows recurring SOL transfers up to a specified limit within a defined window (e.g., monthly). Useful for subscriptions or automated payments.

    SubAccount: 9

    Allows an authority to create a single sub-account with unrestricted access. This is useful when a user wants an app to manage all funds independently, without giving it access to the main wallet. Common in automated portfolio management.

    TokenLimit: 5

    Allows a one-time transfer of a specific SPL token up to a set limit.

    TokenRecurringLimit: 6

    Allows recurring transfers of specific SPL tokens up to a limit within a time window. Enables token-based subscriptions or allowances.