Skip to main content

MergeCoins

open class MergeCoins : Disposable, AutoCloseable, MergeCoinsInterface

Command to merge multiple coins of the same type into a single coin

BCS

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

Constructors​

MergeCoinsconstructor(coin: Argument, coinsToMerge: List<Argument>)

Functions​

NameSummary
close@Synchronized
open override fun close()
coinopen override fun coin(): Argument
Coin to merge coins into
coinsToMergeopen override fun coinsToMerge(): List<Argument>
Set of coins to merge into coin
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
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

Companion object functions​

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