make_app_create_txn
Create an Algorand application creation transaction by specifying approval and clear programs, state parameters, and network details.
Instructions
Create an application creation transaction
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"approvalProgram": "<approvalProgram>",
"clearProgram": "<clearProgram>",
"numGlobalByteSlices": "<numGlobalByteSlices>",
"numGlobalInts": "<numGlobalInts>",
"numLocalByteSlices": "<numLocalByteSlices>",
"numLocalInts": "<numLocalInts>"
},
"name": "make_app_create_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Sender address in standard Algorand format (58 characters) | |
| approvalProgram | Yes | Logic that executes when the app is called (compiled TEAL as base64) | |
| clearProgram | Yes | Logic that executes when clear state is called (compiled TEAL as base64) | |
| numGlobalByteSlices | Yes | Number of byte array values in global state (0-64) | |
| numGlobalInts | Yes | Number of integer values in global state (0-64) | |
| numLocalByteSlices | Yes | Number of byte array values in local state per account (0-16) | |
| numLocalInts | Yes | Number of integer values in local state per account (0-16) | |
| extraPages | No | Additional program pages for larger programs (0-3) | |
| note | No | Transaction note field (up to 1000 bytes) | |
| lease | No | Lease enforces mutual exclusion of transactions (32 bytes) | |
| rekeyTo | No | Address to rekey the sender account to | |
| appArgs | No | Arguments to pass to the application (max 16 arguments) | |
| accounts | No | Accounts whose local state may be accessed (max 4 accounts) | |
| foreignApps | No | IDs of apps whose global state may be accessed (max 8 apps) | |
| foreignAssets | No | IDs of assets that may be accessed (max 8 assets) | |
| fee | No | Transaction fee in microAlgos. If not set, uses suggested fee from the network | |
| flatFee | No | If true, fee is used as-is (flat fee). If false (default), fee is per-byte | |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |