Options
All
  • Public
  • Public/Protected
  • All
Menu
interface

Command

package

Swapable

subpackage

Contracts

since

v1.0.0

description

Interface that describes commands on digital assets.

Hierarchy

  • Command

Implemented by

Index

Properties

context

context: Context
description

The command execution context

descriptor

descriptor: string
description

The command on-chain descriptor

name

name: string
description

The command name

Methods

canExecute

execute

  • execute(actor: PublicAccount, argv: CommandOption[] | undefined): TransactionURI<Transaction>
  • Execute the command with actor operator account. Arguments to the command execution can be passed in argv.

    Parameters

    Returns TransactionURI<Transaction>

Generated using TypeDoc