TypeScript SDKs on Namespace API. Mint, manage & query offchain and onchain ENS subnames.
This monorepo contains TypeScript SDK packages for interacting with the Namespace ecosystem. It's built using Lerna for managing multiple packages.
This monorepo contains the following SDK packages:
Library containing all Namespace & ENS contract addresses.
TypeScript SDK for interacting with the Namespace Indexer API - query L2 subnames, registries, and metadata.
Library for minting L2 subnames with comprehensive validation and error handling.
TypeScript SDK for creating and managing ENS subnames off-chain with the Namespace API.
- Node.js >= 16.0.0
- npm
# Clone the repository
git clone https://github.com/thenamespace/namespacesdk.git
cd namespacesdk
# Install dependencies for all packages
npm install
namespacesdk/
├── packages/
│ ├── addresses/ # Contract addresses library
│ ├── indexer/ # Indexer API SDK
│ ├── mint-manager/ # L2 subname minting library
│ └── offchain-manager/ # Off-chain subname management SDK
├── lerna.json # Lerna configuration
└── package.json # Root package.json (monorepo config)
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run
npm run testto ensure all tests pass - Submit a pull request
This project is licensed under the MIT License.
