Swig TS — API References
    Preparing search index...

    Utility class from managing actions grouped together.

    Index

    Accessors

    • get count(): number

      Number of actions

      Returns number

    Methods

    • Returns Uint8Array<ArrayBufferLike>

    • Check if authority manager action is present

      Returns boolean

      boolean

    • 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 Sol Spend is uncapped

      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: SolPublicKeyData

        Token mint

      • Optionalamount: bigint

        Minimum spendaable amount

      Returns boolean

      boolean

    • Check if Token Spend is uncapped

      Parameters

      Returns boolean

      boolean

    • Check if the action can interact with a given program

      Parameters

      Returns boolean

      boolean

    • Check if any program-related action is present (Program, ProgramAll, ProgramCurated, or All)

      Returns boolean

      boolean

    • Check if root action is present

      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

      Returns null | bigint

      bigint | null

    • Creates a new action

      Parameters

      • raw: Uint8Array

        Buffer of a given number of actions

      • count: number

        number of actions

      Returns Actions

      Actions

    • Returns a builder for chaining actions together. Call .set() at the end of the chain to put these actions together

      Returns ActionsBuilder

      ActionsBuilder