@thenamespace/mint-manager checks mint eligibility and returns the contract call required to mint under a name activated in the Namespace App. It supports Ethereum mainnet and configured L2 networks such as Base and Optimism. Use viem or another compatible client to simulate and submit the returned transaction.
The SDK never holds a private key and never sends a transaction.
Mint Subnames
Mint ENS subnames on Ethereum or an L2.
Mainnet & L2 Support
Works with Ethereum Mainnet and L2 networks such as Base and Optimism.
Subname Availability Checks
Determine whether a subname is available for minting.
The mint flow
Where to go next
Installation
Install the package and configure the client.
Check a name
Eligibility, price, and the reason a mint is refused.
Transaction parameters
Build the call, cap the price, set records at mint time.
Error handling
Every error code and how to handle it.

