Class AssetFreezeTransactionBuilder<T extends AssetFreezeTransactionBuilder<T>>
- java.lang.Object
-
- com.algorand.algosdk.builder.transaction.TransactionParametersBuilder<T>
-
- com.algorand.algosdk.builder.transaction.TransactionBuilder<T>
-
- com.algorand.algosdk.builder.transaction.AssetFreezeTransactionBuilder<T>
-
public class AssetFreezeTransactionBuilder<T extends AssetFreezeTransactionBuilder<T>> extends TransactionBuilder<T>
Build an asset freeze transaction. Required parameters: assetIndex freezeTarget freezeState genesisHash Optional global parameters fee/flatFee note genesisID group lease
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
assetIndex
protected boolean
freezeState
protected Address
freezeTarget
-
Fields inherited from class com.algorand.algosdk.builder.transaction.TransactionBuilder
group, type
-
Fields inherited from class com.algorand.algosdk.builder.transaction.TransactionParametersBuilder
fee, firstValid, flatFee, genesisHash, genesisID, lastValid, lease, note, rekeyTo, sender
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AssetFreezeTransactionBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyTo(Transaction txn)
T
assetIndex(Integer assetIndex)
Set the assetIndex.T
assetIndex(Long assetIndex)
Set the assetIndex.T
assetIndex(BigInteger assetIndex)
Set the assetIndex.static AssetFreezeTransactionBuilder<?>
Builder()
Initialize aAssetFreezeTransactionBuilder
.T
freezeState(boolean freezeState)
Set the freezeState of the freezeTarget account.T
freezeTarget(byte[] freezeTarget)
Set the freezeTarget account in the raw 32 byte format.T
freezeTarget(Address freezeTarget)
Set the freezeTarget account.T
freezeTarget(String freezeTarget)
Set the freezeTarget account in the human-readable address format.-
Methods inherited from class com.algorand.algosdk.builder.transaction.TransactionBuilder
build, group, group, groupB64, groupUTF8
-
Methods inherited from class com.algorand.algosdk.builder.transaction.TransactionParametersBuilder
fee, fee, fee, firstValid, firstValid, firstValid, flatFee, flatFee, flatFee, genesisHash, genesisHash, genesisHashB64, genesisHashUTF8, genesisID, lastValid, lastValid, lastValid, lease, lease, leaseB64, leaseUTF8, lookupParams, note, noteB64, noteUTF8, rekey, rekey, rekey, sender, sender, sender, suggestedParams
-
-
-
-
Field Detail
-
freezeTarget
protected Address freezeTarget
-
assetIndex
protected BigInteger assetIndex
-
freezeState
protected boolean freezeState
-
-
Method Detail
-
Builder
public static AssetFreezeTransactionBuilder<?> Builder()
Initialize aAssetFreezeTransactionBuilder
.
-
applyTo
protected void applyTo(Transaction txn)
- Specified by:
applyTo
in classTransactionBuilder<T extends AssetFreezeTransactionBuilder<T>>
-
freezeTarget
public T freezeTarget(Address freezeTarget)
Set the freezeTarget account. This is the account that will be frozen or thawed.- Parameters:
freezeTarget
- The freezeTarget account.- Returns:
- this builder.
-
freezeTarget
public T freezeTarget(String freezeTarget)
Set the freezeTarget account in the human-readable address format. This is the account that will be frozen or thawed.- Parameters:
freezeTarget
- The freezeTarget account.- Returns:
- this builder.
-
freezeTarget
public T freezeTarget(byte[] freezeTarget)
Set the freezeTarget account in the raw 32 byte format. This is the account that will be frozen or thawed.- Parameters:
freezeTarget
- The freezeTarget account.- Returns:
- this builder.
-
assetIndex
public T assetIndex(BigInteger assetIndex)
Set the assetIndex.- Parameters:
assetIndex
- The assetIndex.- Returns:
- This builder.
-
assetIndex
public T assetIndex(Integer assetIndex)
Set the assetIndex.- Parameters:
assetIndex
- The assetIndex.- Returns:
- This builder.
-
assetIndex
public T assetIndex(Long assetIndex)
Set the assetIndex.- Parameters:
assetIndex
- The assetIndex.- Returns:
- This builder.
-
freezeState
public T freezeState(boolean freezeState)
Set the freezeState of the freezeTarget account.- Parameters:
freezeState
- The freezeState.- Returns:
- This builder.
-
-