Skip to main content

GenesisObject

open class GenesisObject : Disposable, AutoCloseable, GenesisObjectInterface

An object part of the initial chain state

GenesisObject's are included as a part of genesis, the initial checkpoint/transaction, that initializes the state of the blockchain.

BCS

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

Constructors​

GenesisObjectconstructor(data: ObjectData, owner: Owner)

Functions​

NameSummary
close@Synchronized
open override fun close()
dataopen override fun data(): ObjectData
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
objectIdopen override fun objectId(): ObjectId
objectTypeopen override fun objectType(): ObjectType
owneropen override fun owner(): Owner
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
versionopen override fun version(): Version

Companion object functions​

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