Skip to main content

SignedTransaction

type SignedTransaction​

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 SignedTransaction struct {
Transaction *Transaction
Signatures []*UserSignature
}

func SignedTransactionFromBcs​

func SignedTransactionFromBcs(bcs []byte) (SignedTransaction, error)

Create this type from BCS encoded bytes.

func SignedTransactionFromJson​

func SignedTransactionFromJson(json string) (SignedTransaction, error)

Create this type from a JSON encoded string.

func (*SignedTransaction) Destroy​

func (r *SignedTransaction) Destroy()

func (SignedTransaction) ToBcs​

func (_self SignedTransaction) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (SignedTransaction) ToDisplayString​

func (_self SignedTransaction) ToDisplayString() string

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

func (SignedTransaction) ToJson​

func (_self SignedTransaction) ToJson() (string, error)

Convert this type to a JSON encoded string.