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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.algorand.algosdk.builder.transaction.ApplicationBaseTransactionBuilder
ApplicationBaseTransactionBuilder.HoldingReference, ApplicationBaseTransactionBuilder.LocalsReference
-
-
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 TapplicationId(Long appId)This option is disabled for application create, where the ID must be changed from 0.protected voidapplyTo(Transaction txn)static ApplicationCreateTransactionBuilder<?>Builder()Initialize aApplicationCreateTransactionBuilder.TextraPages(Long extraPages)extraPages allows you to rent extra pages of memory for the application.TglobalStateSchema(StateSchema globalStateSchema)GlobalStateSchema sets limits on the number of strings and integers that may be stored in the GlobalState.TlocalStateSchema(StateSchema localStateSchema)LocalStateSchema sets limits on the number of strings and integers that may be stored in an account's LocalState.ToptIn(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, holdings, locals, onCompletion, rejectVersion, useAccess
-
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:
applyToin 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:
applicationIdin interfaceApplicationCallReferencesSetter<T extends ApplicationCreateTransactionBuilder<T>>- Overrides:
applicationIdin 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:StateSchemaSetterLocalStateSchema 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:
localStateSchemain interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
globalStateSchema
public T globalStateSchema(StateSchema globalStateSchema)
Description copied from interface:StateSchemaSetterGlobalStateSchema 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:
globalStateSchemain interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
extraPages
public T extraPages(Long extraPages)
Description copied from interface:StateSchemaSetterextraPages 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:
extraPagesin interfaceStateSchemaSetter<T extends ApplicationCreateTransactionBuilder<T>>
-
-