Package com.algorand.algosdk.transaction
Class TxGroup
- java.lang.Object
-
- com.algorand.algosdk.transaction.TxGroup
-
- All Implemented Interfaces:
Serializable
public class TxGroup extends Object implements Serializable
TxGroup exports computeGroupID and assignGroupID functions- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_TX_GROUP_SIZE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transaction[]
assignGroupID(Address address, Transaction... txns)
Assigns group id to a given array of unsigned transactionsstatic Transaction[]
assignGroupID(Transaction... txns)
Assigns group id to a given array of unsigned transactionsstatic Digest
computeGroupID(Transaction... txns)
Compute group ID for a group of unsigned transactions
-
-
-
Method Detail
-
computeGroupID
public static Digest computeGroupID(Transaction... txns) throws IOException, IllegalArgumentException
Compute group ID for a group of unsigned transactions- Parameters:
txns
- array of transactions- Returns:
- Digest
- Throws:
IOException
IllegalArgumentException
-
assignGroupID
public static Transaction[] assignGroupID(Transaction... txns) throws IOException
Assigns group id to a given array of unsigned transactions- Parameters:
txns
- array of transactions- Returns:
- array of grouped transactions, optionally filtered with the address parameter.
- Throws:
IOException
-
assignGroupID
public static Transaction[] assignGroupID(Address address, Transaction... txns) throws IOException
Assigns group id to a given array of unsigned transactions- Parameters:
txns
- array of transactionsaddress
- optional sender address specifying which transaction return- Returns:
- array of grouped transactions, optionally filtered with the address parameter.
- Throws:
IOException
-
-