TransactionV1
type TransactionV1
A 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 TransactionV1 struct {
// contains filtered or unexported fields
}
func LiftFromExternalTransactionV1
func LiftFromExternalTransactionV1(handle uint64) *TransactionV1
func NewTransactionV1
func NewTransactionV1(kind *TransactionKind, sender *Address, gasPayment GasPayment, expiration TransactionExpiration) *TransactionV1
func TransactionV1FromBase64
func TransactionV1FromBase64(bytes string) (*TransactionV1, error)
Deserialize a transaction from a base64-encoded string.
func TransactionV1FromBcs
func TransactionV1FromBcs(bcs []byte) (*TransactionV1, error)
Create this type from BCS encoded bytes.
func TransactionV1FromJson
func TransactionV1FromJson(json string) (*TransactionV1, error)
Create this type from a JSON encoded string.
func (*TransactionV1) DebugString
func (_self *TransactionV1) DebugString() string
func (*TransactionV1) Destroy
func (object *TransactionV1) Destroy()
func (*TransactionV1) Digest
func (_self *TransactionV1) Digest() *TransactionDigest
func (*TransactionV1) Eq
func (_self *TransactionV1) Eq(other *TransactionV1) bool
func (*TransactionV1) Expiration
func (_self *TransactionV1) Expiration() TransactionExpiration
func (*TransactionV1) GasPayment
func (_self *TransactionV1) GasPayment() GasPayment
func (*TransactionV1) Kind
func (_self *TransactionV1) Kind() *TransactionKind
func (*TransactionV1) Ne
func (_self *TransactionV1) Ne(other *TransactionV1) bool
func (*TransactionV1) Sender
func (_self *TransactionV1) Sender() *Address
func (*TransactionV1) SigningDigest
func (_self *TransactionV1) SigningDigest() []byte
Get the signing digest.
func (*TransactionV1) SigningDigestHex
func (_self *TransactionV1) SigningDigestHex() string
Get the signing digest as a hex string.
func (*TransactionV1) ToBase64
func (_self *TransactionV1) ToBase64() string
Serialize the transaction as a base64-encoded string.
func (*TransactionV1) ToBcs
func (_self *TransactionV1) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*TransactionV1) ToDisplayString
func (_self *TransactionV1) 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 (*TransactionV1) ToJson
func (_self *TransactionV1) ToJson() (string, error)
Convert this type to a JSON encoded string.