Installation
Install the required packages, depending on your package manager
npm install @namespacesdk/mint-manager@latest viem
Create an instance of mint client with a proper configuration
MintClientConfig
Parameter
Default
Description
isTestnet
false
Specifies whether the testnet app is used or not.
customRpcUrls
undefined
Sets a map of chain.id - rpc urls that a mint client is going to use when making external calls. If the rpc url is not specified, the client will default to a public client for a given chain
mintSource
namespace-sdk
When a subname is minted, the mint event also emits a source parameter which is usefull to track where the subname mints are coming from
Last updated