Search Results for

    Show / Hide Table of Contents

    Struct AtomicTxn.Signing

    Represents an Atomic Txn that is currently being signed.

    Implements
    AtomicTxn.ISigning<AtomicTxn.Signing>
    Namespace: Algorand.Unity
    Assembly: cs.temp.dll.dll
    Syntax
    public struct Signing : AtomicTxn.ISigning<AtomicTxn.Signing>
    Remarks

    Once all signatures have been added, serialize this transaction group to msgpack with FinishSigning() or submit it to the network with Submit(AlgodClient, CancellationToken).

    Constructors

    Signing(Transaction[], (Int32, Method)[])

    Create a new AtomicTransaction that is ready for signing. This assumes the given transactions already have the correct group id set.

    Declaration
    public Signing(Transaction[] txns, (int, Method)[] methodIndices)
    Parameters
    Type Name Description
    Transaction[] txns

    The transactions making up this transaction group.

    ValueTuple<Int32, Method>[] methodIndices

    Properties

    SignedTxnIndices

    Indices of the transactions that have already been signed.

    Declaration
    public TxnIndices SignedTxnIndices { get; set; }
    Property Value
    Type Description
    TxnIndices

    Sigs

    Signatures associated with each transaction.

    Declaration
    public TransactionSignature[] Sigs { get; }
    Property Value
    Type Description
    TransactionSignature[]

    Txns

    Transactions in this group.

    Declaration
    public Transaction[] Txns { get; }
    Property Value
    Type Description
    Transaction[]

    Methods

    AsAsync()

    Represent this signing atomic txn group as an async signing group.

    Declaration
    public AtomicTxn.AsyncSigning AsAsync()
    Returns
    Type Description
    AtomicTxn.AsyncSigning
    Remarks

    Async signing groups will require waiting for signatures signing is finished.

    FinishSigning()

    Finish signing this group and return the raw msgpack, ready to submit.

    Declaration
    public byte[] FinishSigning()
    Returns
    Type Description
    Byte[]

    Msgpack encoding of the transaction group.

    FinishSigning(Allocator)

    Finish signing this group and return the msgpack of the group, ready to send to the network.

    Declaration
    public NativeList<byte> FinishSigning(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    Allocator to use in the returned NativeList (which must be disposed).

    Returns
    Type Description
    NativeList<Byte>

    A natively-allocated, msgpack-encoded transaction group, ready to send to the network.

    Submit(AlgodClient, CancellationToken)

    Submit the atomic transaction to the network.

    Declaration
    public UniTask<AtomicTxn.Submitted> Submit(AlgodClient algod, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    AlgodClient algod

    The algod client to use

    CancellationToken cancellationToken

    An optional cancellationToken to cancel the request early.

    Returns
    Type Description
    UniTask<AtomicTxn.Submitted>

    A AtomicTxn.Submitted atomic transaction, ready to be confirmed.

    Implements

    AtomicTxn.ISigning<T>
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾