# Limitations
Limitation | Maximum value |
---|---|
dApp script size | 160 Kbytes |
Account script or asset script size | 8 Kbytes |
Complexity of each callable function of dApp script | 52,000 |
Complexity of an account script | 2000 |
Complexity of an asset script | 4000 |
Total complexity for all callable functions and asset scripts involved in an Invoke Script transaction*. The sender's account script complexity is not included in this limit | 52,000 |
Total number of dApp-to-dApp invocations within a single Invoke Script transaction | 100 |
Complexity threshold for saving failed transactions: if a callable function failed with an error or throwing an exception before the threshold exceeded, the Invoke Script transaction is rejected and the fee is not charged | 1000 |
Complexity of the verifier function of a dApp script | 2000 |
Sender complexity threshold: if the complexity of an account script or the verifier function of a dApp script exceeds this limit, the minimum fee for a transaction sent from the account is increased by 0.004 WAVES | 200 |
Function name or variable name | 255 bytes |
Size of String variable | 32,767 bytes |
Size of ByteVector variable | 32,767 bytes (except bodyBytes field of transaction structure) |
Data weight | See Data Weight |
Number of callable function arguments | 22 |
Number of payments attached to an invocation | 10 |
Total number of payments attached to dApp script invocations in a single transaction | 100 |
Total number of Issue, Reissue, Burn, and SponsorFee script actions executed by all callable functions in a single transaction | 30 |
Total number of ScriptTransfer, Lease, and LeaseCancel script actions executed by all callable functions in a single transaction | 100 |
Total number of BinaryEntry, BooleanEntry, DeleteEntry, IntegerEntry, StringEntry script actions executed by all callable functions in a single transaction | 100 |
Total size of the data written to the account data storage, for all BinaryEntry , BooleanEntry , IntegerEntry , StringEntry script actions executed by a callable function excluding nested invocations | 5 Kbytes |
Total size of data written to the account data storage by all BinaryEntry , BooleanEntry , IntegerEntry , StringEntry script actions executed by all callable functions in a single transaction | 15 Kbytes |
* If the first dApp script invoked uses Standard library version 6, 7 or 8.