Swig TS — API References
    Preparing search index...
    Index

    Properties

    actions: Actions
    authority: Authority
    swigAddress: PublicKey
    swigId: Uint8Array

    Accessors

    Methods

    • Check if the role has the pemission to spend sol at all, or more than the limit if amount is provided

      Parameters

      • Optionalamount: bigint

        The amount of role should be able to spend

      Returns boolean

      boolean

    • Check if the role has the pemission to spend a given token at all, or more than the limit if amount is provided

      Parameters

      • mint: PublicKey

        token mint

      • Optionalamount: bigint

        amount the role should be able to spend

      Returns boolean

    • Check if the role has the permission to spend any amount of the given token

      Parameters

      • mint: PublicKey

        token mint

      Returns boolean

      boolean

    • Check if the authority can use a program

      Parameters

      • programId: PublicKey

        Program Id of the program to check

      Returns boolean

    • Gets the spend limit for a SOL. Return null if the spend is uncapped.

      Returns null | bigint

      bigint | null

    • Gets the spend limit for a given token mint. Return null if the spend is uncapped.

      Parameters

      • mint: PublicKey

        Token mint

      Returns null | bigint

      bigint | null

    • Parameters

      • swigAddress: PublicKey
      • position: Position
      • roleData: Uint8Array
      • swigId: Uint8Array

      Returns Role