ProgrammableTransaction
type ProgrammableTransaction
A user transaction
Contains a series of native commands and move calls where the results of one command can be used in future commands.
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 ProgrammableTransaction struct {
// contains filtered or unexported fields
}
func LiftFromExternalProgrammableTransaction
func LiftFromExternalProgrammableTransaction(handle uint64) *ProgrammableTransaction
func NewProgrammableTransaction
func NewProgrammableTransaction(inputs []*Input, commands []*Command) *ProgrammableTransaction
func ProgrammableTransactionFromBcs
func ProgrammableTransactionFromBcs(bcs []byte) (*ProgrammableTransaction, error)
Create this type from BCS encoded bytes.
func ProgrammableTransactionFromJson
func ProgrammableTransactionFromJson(json string) (*ProgrammableTransaction, error)
Create this type from a JSON encoded string.
func (*ProgrammableTransaction) Commands
func (_self *ProgrammableTransaction) Commands() []*Command
The commands to be executed sequentially. A failure in any command will result in the failure of the entire transaction.
func (*ProgrammableTransaction) DebugString
func (_self *ProgrammableTransaction) DebugString() string
func (*ProgrammableTransaction) Destroy
func (object *ProgrammableTransaction) Destroy()
func (*ProgrammableTransaction) Eq
func (_self *ProgrammableTransaction) Eq(other *ProgrammableTransaction) bool
func (*ProgrammableTransaction) Hash
func (_self *ProgrammableTransaction) Hash() uint64
func (*ProgrammableTransaction) Inputs
func (_self *ProgrammableTransaction) Inputs() []*Input
Input objects or primitive values
func (*ProgrammableTransaction) Ne
func (_self *ProgrammableTransaction) Ne(other *ProgrammableTransaction) bool
func (*ProgrammableTransaction) String
func (_self *ProgrammableTransaction) String() string
func (*ProgrammableTransaction) ToBcs
func (_self *ProgrammableTransaction) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*ProgrammableTransaction) ToDisplayString
func (_self *ProgrammableTransaction) 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 (*ProgrammableTransaction) ToJson
func (_self *ProgrammableTransaction) ToJson() (string, error)
Convert this type to a JSON encoded string.