Class AssetClawbackTransactionBuilder<T extends AssetClawbackTransactionBuilder<T>>
- java.lang.Object
- 
- com.algorand.algosdk.builder.transaction.TransactionParametersBuilder<T>
- 
- com.algorand.algosdk.builder.transaction.TransactionBuilder<T>
- 
- com.algorand.algosdk.builder.transaction.AssetClawbackTransactionBuilder<T>
 
 
 
- 
 public class AssetClawbackTransactionBuilder<T extends AssetClawbackTransactionBuilder<T>> extends TransactionBuilder<T> Build an asset clawback transaction. These transactions allow the asset clawback account to take assets away from holders of the asset. This is a specialized form of an AssetConfig transaction which only succeeds when the sender is equal the clawback account address. Required parameters: sender assetClawbackFrom assetReceiver assetAmount genesisHash Optional parameters: assetCloseTo Optional global parameters: fee/flatFee note genesisID group lease
- 
- 
Field SummaryFields Modifier and Type Field Description protected BigIntegerassetAmountprotected AddressassetClawbackFromprotected AddressassetCloseToprotected BigIntegerassetIndexprotected AddressassetReceiver- 
Fields inherited from class com.algorand.algosdk.builder.transaction.TransactionBuildergroup, type
 - 
Fields inherited from class com.algorand.algosdk.builder.transaction.TransactionParametersBuilderfee, firstValid, flatFee, genesisHash, genesisID, lastValid, lease, note, rekeyTo, sender
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAssetClawbackTransactionBuilder()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyTo(Transaction txn)TassetAmount(Integer assetAmount)Set the assetAmount.TassetAmount(Long assetAmount)Set the assetAmount.TassetAmount(BigInteger assetAmount)Set the assetAmount.TassetClawbackFrom(byte[] assetClawbackFrom)Set the assetClawbackFrom account.TassetClawbackFrom(Address assetClawbackFrom)Set the assetClawbackFrom account.TassetClawbackFrom(String assetClawbackFrom)Set the assetClawbackFrom account.TassetCloseTo(byte[] assetCloseTo)Set the assetCloseTo account in the raw 32 byte format.TassetCloseTo(Address assetCloseTo)Set the assetCloseTo account.TassetCloseTo(String assetCloseTo)Set the assetCloseTo account in the human-readable address format.TassetIndex(Integer assetIndex)Set the assetIndex.TassetIndex(Long assetIndex)Set the assetIndex.TassetIndex(BigInteger assetIndex)Set the assetIndex.TassetReceiver(byte[] assetReceiver)Set the assetReceiver account in the raw 32 byte format.TassetReceiver(Address assetReceiver)Set the assetReceiver account.TassetReceiver(String assetReceiver)Set the assetReceiver account in the human-readable address format.static AssetClawbackTransactionBuilder<?>Builder()Initialize aAssetClawbackTransactionBuilder.- 
Methods inherited from class com.algorand.algosdk.builder.transaction.TransactionBuilderbuild, group, group, groupB64, groupUTF8
 - 
Methods inherited from class com.algorand.algosdk.builder.transaction.TransactionParametersBuilderfee, 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- 
assetClawbackFromprotected Address assetClawbackFrom 
 - 
assetReceiverprotected Address assetReceiver 
 - 
assetCloseToprotected Address assetCloseTo 
 - 
assetAmountprotected BigInteger assetAmount 
 - 
assetIndexprotected BigInteger assetIndex 
 
- 
 - 
Method Detail- 
Builderpublic static AssetClawbackTransactionBuilder<?> Builder() Initialize aAssetClawbackTransactionBuilder.
 - 
applyToprotected void applyTo(Transaction txn) - Specified by:
- applyToin class- TransactionBuilder<T extends AssetClawbackTransactionBuilder<T>>
 
 - 
assetClawbackFrompublic T assetClawbackFrom(Address assetClawbackFrom) Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.- Parameters:
- assetClawbackFrom- The assetClawbackFrom account.
- Returns:
- this builder.
 
 - 
assetClawbackFrompublic T assetClawbackFrom(String assetClawbackFrom) Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.- Parameters:
- assetClawbackFrom- The assetClawbackFrom account.
- Returns:
- this builder.
 
 - 
assetClawbackFrompublic T assetClawbackFrom(byte[] assetClawbackFrom) Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.- Parameters:
- assetClawbackFrom- The assetClawbackFrom account.
- Returns:
- this builder.
 
 - 
assetReceiverpublic T assetReceiver(Address assetReceiver) Set the assetReceiver account. This is the account who will receive the funds.- Parameters:
- assetReceiver- The assetReceiver account.
- Returns:
- this builder.
 
 - 
assetReceiverpublic T assetReceiver(String assetReceiver) Set the assetReceiver account in the human-readable address format. This is the account who will receive the funds.- Parameters:
- assetReceiver- The assetReceiver account.
- Returns:
- this builder.
 
 - 
assetReceiverpublic T assetReceiver(byte[] assetReceiver) Set the assetReceiver account in the raw 32 byte format. This is the account who will receive the funds.- Parameters:
- assetReceiver- The assetReceiver account.
- Returns:
- this builder.
 
 - 
assetCloseTopublic T assetCloseTo(Address assetCloseTo) Set the assetCloseTo account. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.- Parameters:
- assetCloseTo- The assetCloseTo account.
- Returns:
- this builder.
 
 - 
assetCloseTopublic T assetCloseTo(String assetCloseTo) Set the assetCloseTo account in the human-readable address format. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.- Parameters:
- assetCloseTo- The assetCloseTo account.
- Returns:
- this builder.
 
 - 
assetCloseTopublic T assetCloseTo(byte[] assetCloseTo) Set the assetCloseTo account in the raw 32 byte format. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.- Parameters:
- assetCloseTo- The assetCloseTo account.
- Returns:
- this builder.
 
 - 
assetIndexpublic T assetIndex(BigInteger assetIndex) Set the assetIndex.- Parameters:
- assetIndex- The assetIndex.
- Returns:
- This builder.
 
 - 
assetIndexpublic T assetIndex(Integer assetIndex) Set the assetIndex.- Parameters:
- assetIndex- The assetIndex.
- Returns:
- This builder.
 
 - 
assetIndexpublic T assetIndex(Long assetIndex) Set the assetIndex.- Parameters:
- assetIndex- The assetIndex.
- Returns:
- This builder.
 
 - 
assetAmountpublic T assetAmount(BigInteger assetAmount) Set the assetAmount. The number of assets to clawback.- Parameters:
- assetAmount- The assetAmount.
- Returns:
- This builder.
 
 - 
assetAmountpublic T assetAmount(Integer assetAmount) Set the assetAmount. The number of assets to clawback.- Parameters:
- assetAmount- The assetAmount.
- Returns:
- This builder.
 
 
- 
 
-