Skip to main content

MoveCall

open class MoveCall : Disposable, AutoCloseable, MoveCallInterface

Command to call a move function

Functions that can be called by a MoveCall command are those that have a function signature that is either entry or public (which don't have a reference return type).

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

MoveCallconstructor(package: ObjectId, module: Identifier, function: Identifier, typeArguments: List<TypeTag>, arguments: List<Argument>)

Functions​

NameSummary
argumentsopen override fun arguments(): List<Argument>
The arguments to the function.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
functionopen override fun function(): Identifier
The function to be called.
moduleopen override fun module(): Identifier
The specific module in the package containing the function.
packageopen override fun package(): ObjectId
The package containing the module and function.
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
toStringopen override fun toString(): String
typeArgumentsopen override fun typeArguments(): List<TypeTag>
The type arguments to the function.

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): MoveCall
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): MoveCall
Create this type from a JSON encoded string.