Skip to main content

TransferObjects

type TransferObjects​

Command to transfer ownership of a set of objects to an address

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

func LiftFromExternalTransferObjects​

func LiftFromExternalTransferObjects(handle uint64) *TransferObjects

func NewTransferObjects​

func NewTransferObjects(objects []*Argument, address *Argument) *TransferObjects

func TransferObjectsFromBcs​

func TransferObjectsFromBcs(bcs []byte) (*TransferObjects, error)

Create this type from BCS encoded bytes.

func TransferObjectsFromJson​

func TransferObjectsFromJson(json string) (*TransferObjects, error)

Create this type from a JSON encoded string.

func (*TransferObjects) Address​

func (_self *TransferObjects) Address() *Argument

The address to transfer ownership to

func (*TransferObjects) DebugString​

func (_self *TransferObjects) DebugString() string

func (*TransferObjects) Destroy​

func (object *TransferObjects) Destroy()

func (*TransferObjects) Eq​

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

func (*TransferObjects) Ne​

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

func (*TransferObjects) Objects​

func (_self *TransferObjects) Objects() []*Argument

Set of objects to transfer

func (*TransferObjects) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*TransferObjects) ToDisplayString​

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

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

Convert this type to a JSON encoded string.