Transaction
Namespace: IotaSdk
Transaction
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class Transaction : ITransaction, System.IEquatable`1[[IotaSdk.Transaction, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Transaction
Implements ITransaction, IEquatable<Transaction>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Transaction(UInt64)
public Transaction(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
AsV1()
public TransactionV1 AsV1()
Returns
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(Transaction)
public bool Equals(Transaction? other)
Parameters
other Transaction?
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 Transaction FromBase64(string base64)
Parameters
base64 String
Returns
Exceptions
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static Transaction FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static Transaction FromJson(string json)
Parameters
json String
Returns
Exceptions
NewV1(TransactionV1)
public static Transaction NewV1(TransactionV1 transactionV1)
Parameters
transactionV1 TransactionV1