BrandedStorageKey instances from contract address and storage slot.
Signature
- TypeScript
Parameters
- address (
AddressType) - 20-byte contract address owning the storage slot - slot (
bigint) - 256-bit storage slot number within the contract’s storage space
Returns
BrandedStorageKey - Composite key uniquely identifying the storage location
Examples
Basic Usage
Multiple Slots
Storage Map Usage
Computed Mapping Slots
Related
- from() - Universal constructor from various inputs
- toString() - Convert to string format
- fromString() - Parse from string format
- Fundamentals - Learn about storage slots and state

