TransactionV1
Namespace: IotaSdk
A transaction
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class TransactionV1 : ITransactionV1, System.IEquatable`1[[IotaSdk.TransactionV1, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → TransactionV1
Implements ITransactionV1, IEquatable<TransactionV1>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
TransactionV1(UInt64)
public TransactionV1(ulong pointer)
Parameters
pointer UInt64
TransactionV1(TransactionKind, Address, GasPayment, TransactionExpiration)
public TransactionV1(TransactionKind kind, Address sender, GasPayment gasPayment, TransactionExpiration expiration)
Parameters
kind TransactionKind
sender Address
gasPayment GasPayment
expiration TransactionExpiration
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Digest()
public TransactionDigest Digest()
Returns
Expiration()
public TransactionExpiration Expiration()
Returns
GasPayment()
public GasPayment GasPayment()
Returns
Kind()
public TransactionKind Kind()
Returns
Sender()
public Address Sender()
Returns
SigningDigest()
Get the signing digest.
public Byte[] SigningDigest()
Returns
SigningDigestHex()
Get the signing digest as a hex string.
public string SigningDigestHex()
Returns
ToBase64()
Serialize the transaction as a base64-encoded string.
public string ToBase64()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
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.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
Equals(TransactionV1)
public bool Equals(TransactionV1? other)
Parameters
other TransactionV1?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromBase64(String)
Deserialize a transaction from a base64-encoded string.
public static TransactionV1 FromBase64(string bytes)
Parameters
bytes String
Returns
Exceptions
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static TransactionV1 FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static TransactionV1 FromJson(string json)
Parameters
json String