Skip to main content
Install the required packages, depending on your package manager:
viem is a peer dependency. Installing it yourself keeps a single copy in your dependency tree, which matters because the SDK type-checks errors returned by viem. Create a Mint Manager client. The default configuration uses production services and mainnet listings:
For testnet listings and staging services, set isTestnet: true. The flag switches the listing source (Sepolia) and the API environment together, so a price quote can never come from a different network than the transaction that follows it:
Listings are per network. A name listed on mainnet is invisible to a client created with isTestnet: true, and looking one up throws LISTING_NOT_FOUND.

Supply your own RPC endpoints

The SDK reads the ENS registry to confirm availability. Its default endpoints are shared and rate limited, so pass your own for anything user facing. Keys are numeric chain IDs:

MintClientConfig

logger takes any object with debug, info, warn, and error methods that accept a string.

Supported networks

The SDK resolves the parent name’s listing and selects the L1 or L2 path for you, so you pass names rather than chain IDs.

Next steps

Check a name

Confirm eligibility and get a price in one call.

Transaction parameters

Build the contract call and set records at mint time.