Struct AtomicTxn.Building
Represents an Atomic Txn group that is currently being built up with more transactions.
Namespace: Algorand.Unity
Assembly: cs.temp.dll.dll
Syntax
public struct Building
Remarks
Once you are done building this txn group, use Build() to prepare the group for signing.
Properties
Item[Int32]
Get the transaction in this group at the given index.
Declaration
public Transaction this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | i |
Property Value
Type | Description |
---|---|
Transaction |
TxnCount
The current number of transactions in this group.
Declaration
public int TxnCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Txns
Declaration
public IReadOnlyList<Transaction> Txns { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Transaction> |
Methods
AddMethodCall(Address, TransactionParams, AppIndex, OnCompletion, Method, IAbiValue[])
Encode and apply ABI Method arguments to an AppCallTxn then add the transaction to this group.
Declaration
public AtomicTxn.Building AddMethodCall(Address sender, TransactionParams txnParams, AppIndex applicationId, OnCompletion onComplete, Method method, params IAbiValue[] methodArgsParams)
Parameters
Type | Name | Description |
---|---|---|
Address | sender | The address of the account that pays the fee and amount. |
TransactionParams | txnParams | |
AppIndex | applicationId | ID of the application being configured. |
OnCompletion | onComplete | Defines what additional actions occur with the transaction. |
Method | method | The ABI method definition. |
IAbiValue[] | methodArgsParams |
Returns
Type | Description |
---|---|
AtomicTxn.Building | An Atomic Transaction in the Building state, ready to add more transactions or build. |
AddMethodCall(Address, TransactionParams, AppIndex, Method, IAbiValue[])
Encode and apply ABI Method arguments to an AppCallTxn then add the transaction to this group.
Declaration
public AtomicTxn.Building AddMethodCall(Address sender, TransactionParams txnParams, AppIndex applicationId, Method method, params IAbiValue[] methodArgsParams)
Parameters
Type | Name | Description |
---|---|---|
Address | sender | The address of the account that pays the fee and amount. |
TransactionParams | txnParams | |
AppIndex | applicationId | ID of the application being configured. |
Method | method | The ABI method definition. |
IAbiValue[] | methodArgsParams |
Returns
Type | Description |
---|---|
AtomicTxn.Building | An Atomic Transaction in the Building state, ready to add more transactions or build. |
AddMethodCall<T>(Address, TransactionParams, AppIndex, OnCompletion, Method, T)
Encode and apply ABI Method arguments to an AppCallTxn then add the transaction to this group.
Declaration
public AtomicTxn.Building AddMethodCall<T>(Address sender, TransactionParams txnParams, AppIndex applicationId, OnCompletion onComplete, Method method, in T methodArgs)
where T : struct, IArgEnumerator<T>
Parameters
Type | Name | Description |
---|---|---|
Address | sender | The address of the account that pays the fee and amount. |
TransactionParams | txnParams | |
AppIndex | applicationId | ID of the application being configured. |
OnCompletion | onComplete | Defines what additional actions occur with the transaction. |
Method | method | The ABI method definition. |
T | methodArgs | The list of arguments to encode. |
Returns
Type | Description |
---|---|
AtomicTxn.Building | An Atomic Transaction in the Building state, ready to add more transactions or build. |
Type Parameters
Name | Description |
---|---|
T | The type of arg enumerator. |
AddMethodCall<T>(Address, TransactionParams, AppIndex, Method, T)
Encode and apply ABI Method arguments to an AppCallTxn then add the transaction to this group.
Declaration
public AtomicTxn.Building AddMethodCall<T>(Address sender, TransactionParams txnParams, AppIndex applicationId, Method method, in T methodArgs)
where T : struct, IArgEnumerator<T>
Parameters
Type | Name | Description |
---|---|---|
Address | sender | The address of the account that pays the fee and amount. |
TransactionParams | txnParams | |
AppIndex | applicationId | ID of the application being configured. |
Method | method | The ABI method definition. |
T | methodArgs | The list of arguments to encode. |
Returns
Type | Description |
---|---|
AtomicTxn.Building | An Atomic Transaction in the Building state, ready to add more transactions or build. |
Type Parameters
Name | Description |
---|---|
T | The type of arg enumerator. |
AddTxn<T>(T)
Add a transaction to this group.
Declaration
public AtomicTxn.Building AddTxn<T>(T txn)
where T : ITransaction
Parameters
Type | Name | Description |
---|---|---|
T | txn | The transaction to add to this group, with a zeroed-out |
Returns
Type | Description |
---|---|
AtomicTxn.Building | An Atomic Transaction in the Building state, ready to add more transactions or build. |
Type Parameters
Name | Description |
---|---|
T | The type of the transaction. |
Remarks
The transaction must not have its
Build()
Builds the current Atomic Transaction, generating a group ID and assigning it to all transactions in this group.
Declaration
public AtomicTxn.Signing Build()
Returns
Type | Description |
---|---|
AtomicTxn.Signing | An Atomic Transaction that's ready to be signed by different signers. |