Interface IAsyncSignerWithProgress
Inherited Members
Namespace: Algorand.Unity
Assembly: cs.temp.dll.dll
Syntax
public interface IAsyncSignerWithProgress : IAsyncSigner
Methods
SignTxnsAsync<T, TProgress>(T[], TxnIndices, TProgress, CancellationToken)
Sign a group of transactions.
Declaration
UniTask<SignedTxn<T>[]> SignTxnsAsync<T, TProgress>(T[] txns, TxnIndices txnsToSign, TProgress progress, CancellationToken cancellationToken = null)
where T : ITransaction, IEquatable<T> where TProgress : IProgress<float>
Parameters
Type | Name | Description |
---|---|---|
T[] | txns | The transactions to sign. |
TxnIndices | txnsToSign | Indexes of the transactions this signer should sign. |
TProgress | progress | A progress token that can be used to periodically check the progress. |
CancellationToken | cancellationToken | Provide an optional cancellation token to interrupt signing. |
Returns
Type | Description |
---|---|
UniTask<SignedTxn<T>[]> | An array of transactions with signatures. If the transaction at a given index was not signed, that signed transaction will have no signature. |
Type Parameters
Name | Description |
---|---|
T | The type of the transactions. |
TProgress |
Remarks
Each transaction is expected to have a valid group id already set.