Skip to main content

GenesisTransaction

open class GenesisTransaction : Disposable, AutoCloseable, GenesisTransactionInterface

The genesis transaction

BCS

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

Constructors​

GenesisTransactionconstructor(objects: List<GenesisObject>, events: List<Event>)

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
eventsopen override fun events(): List<Event>
objectsopen override fun objects(): List<GenesisObject>
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): GenesisTransaction
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): GenesisTransaction
Create this type from a JSON encoded string.