Utilities
The DID Spaces SDK provides a collection of essential helper functions and modules designed to simplify common tasks and enhance development efficiency. These utilities abstract away complexities, allowing developers to focus on core application logic. Each module offers specific functionalities, ranging from DID string manipulation to robust error handling and file system operations.
Dive into the dedicated sections below for detailed information on each utility:
Available Utilities#
- DID: Utilities for manipulating and validating DID strings.
- HTTP Clients: Modules and functions for making HTTP requests and managing connection agents.
- Error Handling: Functions for standardized error message and status code retrieval from various types of errors.
- File System: Helper functions for common file system operations, including writing data to files.
- Hashing: Functions for calculating content hashes and verifying object integrity.
- Space Endpoint: Utilities for normalizing and retrieving DID Space endpoint information.
- Logger: Basic logging utilities to help debug and monitor SDK operations.
- Sleep: A utility function to pause execution for a specified duration.
These utilities are integral to building robust applications with the DID Spaces SDK. Explore each section to understand how they can streamline your development process. To begin, learn more about DID utilities.