Skip to main content

GenesisTransaction

type GenesisTransaction​

The genesis transaction

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 GenesisTransaction struct {
// contains filtered or unexported fields
}

func GenesisTransactionFromBcs​

func GenesisTransactionFromBcs(bcs []byte) (*GenesisTransaction, error)

Create this type from BCS encoded bytes.

func GenesisTransactionFromJson​

func GenesisTransactionFromJson(json string) (*GenesisTransaction, error)

Create this type from a JSON encoded string.

func LiftFromExternalGenesisTransaction​

func LiftFromExternalGenesisTransaction(handle uint64) *GenesisTransaction

func NewGenesisTransaction​

func NewGenesisTransaction(objects []*GenesisObject, events []Event) (*GenesisTransaction, error)

func (*GenesisTransaction) DebugString​

func (_self *GenesisTransaction) DebugString() string

func (*GenesisTransaction) Destroy​

func (object *GenesisTransaction) Destroy()

func (*GenesisTransaction) Eq​

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

func (*GenesisTransaction) Events​

func (_self *GenesisTransaction) Events() []Event

func (*GenesisTransaction) Ne​

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

func (*GenesisTransaction) Objects​

func (_self *GenesisTransaction) Objects() []*GenesisObject

func (*GenesisTransaction) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*GenesisTransaction) ToDisplayString​

func (_self *GenesisTransaction) 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 (*GenesisTransaction) ToJson​

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

Convert this type to a JSON encoded string.