Show / Hide Table of Contents

Class TransactionBase

Inheritance
System.Object
TransactionBase
FeeBumpTransaction
Transaction
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public abstract class TransactionBase : object

Constructors

TransactionBase()

Declaration
public TransactionBase()

Properties

Signatures

Declaration
public List<DecoratedSignature> Signatures { get; }
Property Value
List<stellar_dotnet_sdk.xdr.DecoratedSignature>

Methods

Hash()

Returns transaction hash.

Declaration
public byte[] Hash()
Returns
System.Byte[]

Hash(Network)

Returns transaction hash for the given network.

Declaration
public byte[] Hash(Network network)
Parameters
Type Name Description
Network network

The network Network the transaction will be sent to.

Returns
System.Byte[]

Sign(IAccountId)

Adds a new signature ed25519PublicKey to this transaction.

Declaration
public void Sign(IAccountId signer)
Parameters
Type Name Description
IAccountId signer

signer IAccountId object representing a signer

Sign(IAccountId, Network)

Adds a new signature ed25519PublicKey to this transaction.

Declaration
public void Sign(IAccountId signer, Network network)
Parameters
Type Name Description
IAccountId signer

signer IAccountId object representing a signer

Network network

The network Network the transaction will be sent to.

Sign(Byte[])

Adds a new sha256Hash signature to this transaction by revealing preimage.

Declaration
public void Sign(byte[] preimage)
Parameters
Type Name Description
System.Byte[] preimage

the sha256 hash of preimage should be equal to signer hash

Sign(String, String)

Add a signature to the transaction. Useful when a party wants to pre-sign a transaction but doesn't want to give access to their secret keys. This will also verify whether the signature is valid.

Declaration
public void Sign(string publicKey, string signature)
Parameters
Type Name Description
System.String publicKey

The public key of the signer

System.String signature

The base64 value of the signature XDR

SignatureBase()

Returns signature base.

Declaration
public byte[] SignatureBase()
Returns
System.Byte[]

SignatureBase(Network)

Returns signature base for the given network.

Declaration
public abstract byte[] SignatureBase(Network network)
Parameters
Type Name Description
Network network

The network Network the transaction will be sent to.

Returns
System.Byte[]

ToEnvelopeXdr(TransactionBase.TransactionXdrVersion)

Generates TransactionEnvelope XDR object. Transaction need to have at least one signature.

Declaration
public abstract TransactionEnvelope ToEnvelopeXdr(TransactionBase.TransactionXdrVersion version = TransactionBase.TransactionXdrVersion.V1)
Parameters
Type Name Description
TransactionBase.TransactionXdrVersion version

The envelope version to generated. Defaults to V0

Returns
stellar_dotnet_sdk.xdr.TransactionEnvelope

ToEnvelopeXdrBase64(TransactionBase.TransactionXdrVersion)

Returns base64-encoded TransactionEnvelope XDR object. Transaction need to have at least one signature.

Declaration
public string ToEnvelopeXdrBase64(TransactionBase.TransactionXdrVersion version = TransactionBase.TransactionXdrVersion.V1)
Parameters
Type Name Description
TransactionBase.TransactionXdrVersion version
Returns
System.String

ToUnsignedEnvelopeXdr(TransactionBase.TransactionXdrVersion)

Generates TransactionEnvelope XDR object. This transaction MUST be signed before being useful

Declaration
public abstract TransactionEnvelope ToUnsignedEnvelopeXdr(TransactionBase.TransactionXdrVersion version = TransactionBase.TransactionXdrVersion.V1)
Parameters
Type Name Description
TransactionBase.TransactionXdrVersion version

The envelope version to generated. Defaults to V0

Returns
stellar_dotnet_sdk.xdr.TransactionEnvelope

ToUnsignedEnvelopeXdrBase64(TransactionBase.TransactionXdrVersion)

Generates TransactionEnvelope XDR object. This transaction MUST be signed before being useful

Declaration
public string ToUnsignedEnvelopeXdrBase64(TransactionBase.TransactionXdrVersion version = TransactionBase.TransactionXdrVersion.V1)
Parameters
Type Name Description
TransactionBase.TransactionXdrVersion version
Returns
System.String

Back to top Generated by DocFX