Interface IAsyncSigner
Namespace: Algorand.Unity
Assembly: cs.temp.dll.dll
Syntax
public interface IAsyncSigner
Methods
SignTxnsAsync<T>(T[], TxnIndices, CancellationToken)
Sign a group of transactions.
Declaration
UniTask<SignedTxn<T>[]> SignTxnsAsync<T>(T[] txns, TxnIndices txnsToSign, CancellationToken cancellationToken = null)
where T : ITransaction, IEquatable<T>
Parameters
Type | Name | Description |
---|---|---|
T[] | txns | The transactions to sign. |
TxnIndices | txnsToSign | Indexes of the transactions this signer should sign. |
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. |
Remarks
Each transaction is expected to have a valid group id already set.