Skip to main content

TransactionKind

type TransactionKind​

Transaction type

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

func LiftFromExternalTransactionKind​

func LiftFromExternalTransactionKind(handle uint64) *TransactionKind

func TransactionKindFromBcs​

func TransactionKindFromBcs(bcs []byte) (*TransactionKind, error)

Create this type from BCS encoded bytes.

func TransactionKindFromJson​

func TransactionKindFromJson(json string) (*TransactionKind, error)

Create this type from a JSON encoded string.

func TransactionKindNewConsensusCommitPrologueV1​

func TransactionKindNewConsensusCommitPrologueV1(transaction *ConsensusCommitPrologueV1) *TransactionKind

Create a `TransactionKind` for a consensus-commit-prologue-v1 transaction.

func TransactionKindNewEndOfEpoch​

func TransactionKindNewEndOfEpoch(transaction []*EndOfEpochTransactionKind) *TransactionKind

Create a `TransactionKind` for an end-of-epoch transaction.

func TransactionKindNewGenesis​

func TransactionKindNewGenesis(transaction *GenesisTransaction) *TransactionKind

Create a `TransactionKind` for a genesis transaction.

func TransactionKindNewProgrammable​

func TransactionKindNewProgrammable(transaction *ProgrammableTransaction) *TransactionKind

Create a `TransactionKind` for a programmable transaction.

func TransactionKindNewRandomnessStateUpdate​

func TransactionKindNewRandomnessStateUpdate(transaction RandomnessStateUpdate) *TransactionKind

Create a `TransactionKind` for a randomness-state-update transaction.

func TransactionKindNewTransactionDenyRulesUpdate​

func TransactionKindNewTransactionDenyRulesUpdate(transaction TransactionDenyRulesUpdate) *TransactionKind

Create a `TransactionKind` for a transaction-deny-rules-update transaction.

func (*TransactionKind) DebugString​

func (_self *TransactionKind) DebugString() string

func (*TransactionKind) Destroy​

func (object *TransactionKind) Destroy()

func (*TransactionKind) Eq​

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

func (*TransactionKind) Hash​

func (_self *TransactionKind) Hash() uint64

func (*TransactionKind) Ne​

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

func (*TransactionKind) String​

func (_self *TransactionKind) String() string

func (*TransactionKind) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*TransactionKind) ToDisplayString​

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

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

Convert this type to a JSON encoded string.