Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Action

class Action is applied to access an action's context information. This class is static.

class

Action

Hierarchy

  • Action

Index

Accessors

Static receiver

  • get receiver(): account_name
  • to get the receiver's account name of current action. such as command 'clultrain push action kobe '["params"]' -p james's-key', 'kobe' is the receiver's account name.

    Returns account_name

Static sender

  • get sender(): account_name
  • to get the sender of current action, specially, 'sender' means whose permission key is used by '-p', such as command 'clultrain push action kobe '["params"]' -p james's-key', 'james' is the sender's account name.

    Returns account_name

    return the sender's account name.

Methods

Static hasAuth

  • hasAuth(account: account_name): boolean
  • to check if an account name has been authored.

    Parameters

    • account: account_name

      the account name which will be checked.

    Returns boolean

    boolean value, return true means the account is authored, otherwised false.

Static isAccount

  • isAccount(account: account_name): boolean
  • to check if an account name is valid or not.

    Parameters

    • account: account_name

      account name to be checked.

    Returns boolean

    boolean

Static requireAuth

  • requireAuth(account: account_name): void
  • check the authority of a speicfic account name.

    Parameters

    • account: account_name

      account_name whose authority is required.

    Returns void

Generated using TypeDoc