Skip to main content

Transaction

type Transaction​

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

func LiftFromExternalTransaction​

func LiftFromExternalTransaction(handle uint64) *Transaction

func TransactionFromBase64​

func TransactionFromBase64(base64 string) (*Transaction, error)

Deserialize a transaction from a base64-encoded string.

func TransactionFromBcs​

func TransactionFromBcs(bcs []byte) (*Transaction, error)

Create this type from BCS encoded bytes.

func TransactionFromJson​

func TransactionFromJson(json string) (*Transaction, error)

Create this type from a JSON encoded string.

func TransactionNewV1​

func TransactionNewV1(transactionV1 *TransactionV1) *Transaction

func (*Transaction) AsV1​

func (_self *Transaction) AsV1() *TransactionV1

func (*Transaction) DebugString​

func (_self *Transaction) DebugString() string

func (*Transaction) Destroy​

func (object *Transaction) Destroy()

func (*Transaction) Digest​

func (_self *Transaction) Digest() *TransactionDigest

func (*Transaction) Eq​

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

func (*Transaction) Expiration​

func (_self *Transaction) Expiration() TransactionExpiration

func (*Transaction) GasPayment​

func (_self *Transaction) GasPayment() GasPayment

func (*Transaction) Kind​

func (_self *Transaction) Kind() *TransactionKind

func (*Transaction) Ne​

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

func (*Transaction) Sender​

func (_self *Transaction) Sender() *Address

func (*Transaction) SigningDigest​

func (_self *Transaction) SigningDigest() []byte

Get the signing digest.

func (*Transaction) SigningDigestHex​

func (_self *Transaction) SigningDigestHex() string

Get the signing digest as a hex string.

func (*Transaction) ToBase64​

func (_self *Transaction) ToBase64() string

Serialize the transaction as a base64-encoded string.

func (*Transaction) ToBcs​

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

Convert this type to BCS encoded bytes.

func (*Transaction) ToDisplayString​

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

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

Convert this type to a JSON encoded string.