Skip to main content

GenesisObject

type GenesisObject​

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`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

type GenesisObject struct {
// contains filtered or unexported fields
}

func GenesisObjectFromBcs​

func GenesisObjectFromBcs(bcs []byte) (*GenesisObject, error)

Create this type from BCS encoded bytes.

func GenesisObjectFromJson​

func GenesisObjectFromJson(json string) (*GenesisObject, error)

Create this type from a JSON encoded string.

func LiftFromExternalGenesisObject​

func LiftFromExternalGenesisObject(handle uint64) *GenesisObject

func NewGenesisObject​

func NewGenesisObject(data *ObjectData, owner *Owner) *GenesisObject

func (*GenesisObject) Data​

func (_self *GenesisObject) Data() *ObjectData

func (*GenesisObject) DebugString​

func (_self *GenesisObject) DebugString() string

func (*GenesisObject) Destroy​

func (object *GenesisObject) Destroy()

func (*GenesisObject) Eq​

func (_self *GenesisObject) Eq(other *GenesisObject) bool

func (*GenesisObject) Ne​

func (_self *GenesisObject) Ne(other *GenesisObject) bool

func (*GenesisObject) ObjectId​

func (_self *GenesisObject) ObjectId() *ObjectId

func (*GenesisObject) ObjectType​

func (_self *GenesisObject) ObjectType() *ObjectType

func (*GenesisObject) Owner​

func (_self *GenesisObject) Owner() *Owner

func (*GenesisObject) ToBcs​

func (_self *GenesisObject) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (*GenesisObject) ToDisplayString​

func (_self *GenesisObject) ToDisplayString() string

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

func (*GenesisObject) ToJson​

func (_self *GenesisObject) ToJson() (string, error)

Convert this type to a JSON encoded string.

func (*GenesisObject) Version​

func (_self *GenesisObject) Version() *Version