Skip to main content

SplitCoins

open class SplitCoins : Disposable, AutoCloseable, SplitCoinsInterface

Command to split a single coin object into multiple coins

BCS

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

Constructors​

SplitCoinsconstructor(coin: Argument, amounts: List<Argument>)

Functions​

NameSummary
amountsopen override fun amounts(): List<Argument>
The amounts to split off
close@Synchronized
open override fun close()
coinopen override fun coin(): Argument
The coin to split
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): SplitCoins
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): SplitCoins
Create this type from a JSON encoded string.