Skip to main content

TransactionEvents

type TransactionEvents​

Events emitted during the successful execution of a 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 TransactionEvents struct {
// contains filtered or unexported fields
}

func LiftFromExternalTransactionEvents​

func LiftFromExternalTransactionEvents(handle uint64) *TransactionEvents

func NewTransactionEvents​

func NewTransactionEvents(events []Event) (*TransactionEvents, error)

func TransactionEventsFromBcs​

func TransactionEventsFromBcs(bcs []byte) (*TransactionEvents, error)

Create this type from BCS encoded bytes.

func TransactionEventsFromJson​

func TransactionEventsFromJson(json string) (*TransactionEvents, error)

Create this type from a JSON encoded string.

func (*TransactionEvents) Destroy​

func (object *TransactionEvents) Destroy()

func (*TransactionEvents) Digest​

func (_self *TransactionEvents) Digest() *TransactionEventsDigest

func (*TransactionEvents) Events​

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

func (*TransactionEvents) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*TransactionEvents) ToDisplayString​

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

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

Convert this type to a JSON encoded string.