Skip to main content

MergeCoins

type MergeCoins​

Command to merge multiple coins of the same type into a single coin

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

func LiftFromExternalMergeCoins​

func LiftFromExternalMergeCoins(handle uint64) *MergeCoins

func MergeCoinsFromBcs​

func MergeCoinsFromBcs(bcs []byte) (*MergeCoins, error)

Create this type from BCS encoded bytes.

func MergeCoinsFromJson​

func MergeCoinsFromJson(json string) (*MergeCoins, error)

Create this type from a JSON encoded string.

func NewMergeCoins​

func NewMergeCoins(coin *Argument, coinsToMerge []*Argument) *MergeCoins

func (*MergeCoins) Coin​

func (_self *MergeCoins) Coin() *Argument

Coin to merge coins into

func (*MergeCoins) CoinsToMerge​

func (_self *MergeCoins) CoinsToMerge() []*Argument

Set of coins to merge into `coin`

All listed coins must be of the same type and be the same type as `coin`

func (*MergeCoins) DebugString​

func (_self *MergeCoins) DebugString() string

func (*MergeCoins) Destroy​

func (object *MergeCoins) Destroy()

func (*MergeCoins) Eq​

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

func (*MergeCoins) Ne​

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

func (*MergeCoins) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*MergeCoins) ToDisplayString​

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

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

Convert this type to a JSON encoded string.