Swig TS — API References
    Preparing search index...

    Utility class from managing actions grouped together.

    Index

    Accessors

    Methods

    • Check if Sol Spend is allowed. If amount is provided, it will return true if the action can spend the given amoount of Sol

      Parameters

      • Optionalamount: bigint

        minimum spendaable amount

      Returns boolean

      boolean

    • Check if Token Spend is allowed. If amount is provided, it will return true if the action can spend the given amoount of Sol

      Parameters

      • mint: PublicKey

        Token mint

      • Optionalamount: bigint

        Minimum spendaable amount

      Returns boolean

      boolean

    • Check if Token Spend is uncapped

      Parameters

      • mint: PublicKey

        Token mint

      Returns boolean

      boolean

    • Check if the action can interact with a given program

      Parameters

      • programId: PublicKey

        ID of the Program to interact with

      Returns boolean

      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