Complete guide to minting ENS subnames on L1 and L2 networks using the Namespace Mint Manager SDK.
Activate Your ENS Name
Install Dependencies
Configure Mint Client
customRpcUrls: Custom RPC endpoints for different networksmintSource: Identifier for your application (used for analytics)Set Up Viem Clients
publicClient: For reading blockchain state and simulating transactionswalletClient: For signing and sending transactionswallet: Your account instance for transaction signingCheck Subname Availability
Get Mint Details and Pricing
Generate Transaction Parameters
Simulate and Execute Transaction
.env file with your configuration: