BrandedStorageKey. Inverse of toString().
Signature
Parameters
- str (
string) - String format:"address:slot"with hex address and decimal slot
Returns
BrandedStorageKey - Parsed storage key with address and slot
Format
- address: 40-character hex string (with or without 0x prefix)
- slot: Decimal string representation of slot number
Examples
Basic Usage
Various Formats
Round-Trip Conversion
Load from JSON
Database Retrieval
URL Query Parameters
Error Handling
Batch Parsing
API Response Parsing
Validation
The function validates:- Address format (40 hex characters)
- Slot format (valid decimal string)
- Presence of colon separator
- Non-negative slot number
Related
- toString() - Convert to string format
- StorageKey() - Factory function
- from() - Universal constructor
- Fundamentals - Learn about storage keys

