Limits temporary state during execution.
Current Value
1048576Relevant for: developers
The Big Picture
Transient storage exists only during execution - not persisted. This limit prevents excessive memory usage during complex operations.
From Chain Metadata
The maximum size of the transient storage in bytes. This includes keys, values, and previous entries used for storage rollback.
Use Cases
- Plan complex contract operations
- Understand execution constraints
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Query MaxTransientStorageSize constant
const value = api.consts[stringCamelCase("Contracts")][stringCamelCase("MaxTransientStorageSize")];
console.log("MaxTransientStorageSize:", value.toHuman());Type Information
- Type
- u32
- Byte Size
- 4 bytes
- Encoding
- fixed
- Raw Hex
- 0x00001000
Runtime Info
- Pallet
- Contracts
- First Version
- v334
- Latest Version
- v334
- Current Runtime
- v393