Namespace Minter
Namespace Minter is a smart contract that is responsible for minting subnames for ENS names which are listed on the Namespace platform.
Contract deployments:
Sepolia - https://sepolia.etherscan.io/address/0x2674e4fae872780f01b99e109e67749b765703fb Mainnet - https://etherscan.io/address/0x18cC184E630A8290e46082351ba66A209a0787ba
To mint a subname under the *listed* ENS name, you would need to call the "mint" function of the NamespaceMinter contract:
The following parameters are needed for minting: MintSubnameContext context
and bytes signature
.
The context
is provided to represent the data required for minting:
Since the information about listing configuration is stored offchain, requests to mint subnames are first sent to the backend API. The backend will validate a minting request, and generate both context
and signature
.
The signature
is the hashed version of the context
, generated by a private key securely stored on the backend. Thus when the smart contract receives the minting transaction, it will need to verify that the correct address generated the signature
. Once the signature verification is confirmed, the smart contract will proceed with the minting based on the provided context
.
For information on how to generate minting parameters, visit:
If at any point you require some assistance or help implementing this, make sure to reach out to us in our Discord and we will answer all your questions.
Last updated