abstract class Cmd extends AnyRef
Base class for all commands which can be executed by ErgoTool. Inherit this class to implement a new command.
- See also
RunWithErgoClient if your command need to communicate with blockchain.
- Alphabetic
- By Inheritance
- Cmd
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Cmd()
Abstract Value Members
-
abstract
def
name: String
Returns the name of this command (Example:
send
,mnemonic
etc.) -
abstract
def
run(ctx: AppContext): Unit
Runs this command using given AppContext.
Runs this command using given AppContext.
- ctx
context information of this command execution collected from command line, configuration file etc.
- Exceptions thrown
CmdException
when command execution fails
-
abstract
def
toolConf: ErgoToolConfig
Returns current tool configuration parameters
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apiKey: String
ApiKey which is used for Ergo node API authentication.
ApiKey which is used for Ergo node API authentication. This is a secret key whose hash was used in Ergo node config. This is only necessary to communicate to the protected parts of node API.
-
def
apiUrl: String
Returns the url of the Ergo blockchain node used to communicate with the network.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(msg: String): Nothing
Helper method to throw a new CmdException from this command.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
networkType: NetworkType
Returns the network type (MAINNET or TESTNET) ErgoTool is expected to communicate.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )