Class ApplicationCreateTransactionBuilder<T extends ApplicationCreateTransactionBuilder<T>>
- java.lang.Object
-
- com.algorand.algosdk.builder.transaction.TransactionParametersBuilder<T>
-
- com.algorand.algosdk.builder.transaction.TransactionBuilder<T>
-
- com.algorand.algosdk.builder.transaction.ApplicationBaseTransactionBuilder<T>
-
- com.algorand.algosdk.builder.transaction.ApplicationUpdateTransactionBuilder<T>
-
- com.algorand.algosdk.builder.transaction.ApplicationCreateTransactionBuilder<T>
-
- All Implemented Interfaces:
ApplicationCallReferencesSetter<T>
,StateSchemaSetter<T>
,TEALProgramSetter<T>
public class ApplicationCreateTransactionBuilder<T extends ApplicationCreateTransactionBuilder<T>> extends ApplicationUpdateTransactionBuilder<T> implements StateSchemaSetter<T>
-
-
Field Summary
-
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 Constructor Description ApplicationCreateTransactionBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
applicationId(Long appId)
This option is disabled for application create, where the ID must be changed from 0.protected void
applyTo(Transaction txn)
static ApplicationCreateTransactionBuilder<?>
Builder()
Initialize aApplicationCreateTransactionBuilder
.T
extraPages(Long extraPages)
extraPages allows you to rent extra pages of memory for the application.T
globalStateSchema(StateSchema globalStateSchema)
GlobalStateSchema sets limits on the number of strings and integers that may be stored in the GlobalState.T
localStateSchema(StateSchema localStateSchema)
LocalStateSchema sets limits on the number of strings and integers that may be stored in an account's LocalState.T
optIn(boolean optIn)
When creating an application, you have the option of opting in with the same transaction.-
Methods inherited from class com.algorand.algosdk.builder.transaction.ApplicationUpdateTransactionBuilder
approvalProgram, clearStateProgram
-
Methods inherited from class com.algorand.algosdk.builder.transaction.ApplicationBaseTransactionBuilder
accounts, args, argsBase64Encoded, boxReferences, foreignApps, foreignAssets, onCompletion
-
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
-
-
-
-
Method Detail
-
Builder
public static ApplicationCreateTransactionBuilder<?> Builder()
Initialize aApplicationCreateTransactionBuilder
.
-
applyTo
protected void applyTo(Transaction txn)
- Overrides:
applyTo
in classApplicationUpdateTransactionBuilder<T extends ApplicationCreateTransactionBuilder<T>>
-
applicationId
public T applicationId(Long appId)
This option is disabled for application create, where the ID must be changed from 0.- Specified by:
applicationId
in interfaceApplicationCallReferencesSetter<T extends ApplicationCreateTransactionBuilder<T>>
- Overrides:
applicationId
in classApplicationBaseTransactionBuilder<T extends ApplicationCreateTransactionBuilder<T>>
-
optIn
public T optIn(boolean optIn)
When creating an application, you have the option of opting in with the same transaction. Without this flag a separate transaction is needed to opt-in.
-
localStateSchema
public T localStateSchema(StateSchema localStateSchema)
Description copied from interface:StateSchemaSetter
LocalStateSchema sets limits on the number of strings and integers that may be stored in an account's LocalState. for this application. The larger these limits are, the larger minimum balance must be maintained inside the account of any users who opt into this application. The LocalStateSchema is immutable.- Specified by:
localStateSchema
in interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
globalStateSchema
public T globalStateSchema(StateSchema globalStateSchema)
Description copied from interface:StateSchemaSetter
GlobalStateSchema sets limits on the number of strings and integers that may be stored in the GlobalState. The larger these limits are, the larger minimum balance must be maintained inside the creator's account (in order to 'pay' for the state that can be used). The GlobalStateSchema is immutable.- Specified by:
globalStateSchema
in interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
extraPages
public T extraPages(Long extraPages)
Description copied from interface:StateSchemaSetter
extraPages allows you to rent extra pages of memory for the application. Each page is 2048 bytes of shared memory between approval and clear state programs. extraPages parameter must be an integer between 0 and 3 inclusive.- Specified by:
extraPages
in interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
-