Class AssetAcceptTransactionBuilder<T extends AssetAcceptTransactionBuilder<T>>
- java.lang.Object
-
- com.algorand.algosdk.builder.transaction.TransactionParametersBuilder<T>
-
- com.algorand.algosdk.builder.transaction.TransactionBuilder<T>
-
- com.algorand.algosdk.builder.transaction.AssetAcceptTransactionBuilder<T>
-
public class AssetAcceptTransactionBuilder<T extends AssetAcceptTransactionBuilder<T>> extends TransactionBuilder<T>
Build an asset accept transaction, which is used to mark an acount as willing to accept an asset. Required parameters: acceptingAccount assetIndex firstValid genesisHash Optional global parameters: fee/flatFee note genesisID lease group Note: The acceptingAccount setters map to the 'sender' field internally. Using both will override each other.
-
-
Field Summary
Fields Modifier and Type Field Description protected BigInteger
assetIndex
-
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
AssetAcceptTransactionBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
acceptingAccount(byte[] acceptingAccount)
Set the acceptingAccount in the raw 32 byte format.T
acceptingAccount(Address acceptingAccount)
Set the acceptingAccount.T
acceptingAccount(String acceptingAccount)
Set the acceptingAccount in the human-readable address format.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 AssetAcceptTransactionBuilder<?>
Builder()
Initialize aAssetAcceptTransactionBuilder
.-
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
-
assetIndex
protected BigInteger assetIndex
-
-
Method Detail
-
Builder
public static AssetAcceptTransactionBuilder<?> Builder()
Initialize aAssetAcceptTransactionBuilder
.
-
applyTo
protected void applyTo(Transaction txn)
- Specified by:
applyTo
in classTransactionBuilder<T extends AssetAcceptTransactionBuilder<T>>
-
acceptingAccount
public T acceptingAccount(Address acceptingAccount)
Set the acceptingAccount.- Parameters:
acceptingAccount
- The acceptingAccount.- Returns:
- This builder.
-
acceptingAccount
public T acceptingAccount(String acceptingAccount)
Set the acceptingAccount in the human-readable address format.- Parameters:
acceptingAccount
- The acceptingAccount.- Returns:
- This builder.
-
acceptingAccount
public T acceptingAccount(byte[] acceptingAccount)
Set the acceptingAccount in the raw 32 byte format.- Parameters:
acceptingAccount
- The acceptingAccount.- 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.
-
-