Important Note: Reverse resolution is not enabled by default. Some users may not have set their primary address, which can result in null when resolving an address to a name using the method above.
For this reason, it is recommended to use the subgraph instead.
To perform reverse resolution (address to name):
...const resolvedName = await getEnsName(client, { name: "0x123456689", // !IMPORTANT! modify with one deployed on Sanko as follow: universalResolverAddress: "0xE6948912778506bf20896632c35163b1fACD5464",})// sanko.dmt...
Incorrect Contract Addresses: Ensure you're using the correct SNS contract addresses for the Sanko chain.
Name Normalization: SNS names should be normalized before querying or registering.
Transaction Underpricing: Make sure to use the rentPrice function to get the total price for registration. This ensures you're sending enough value with the transaction.
CommitmentTooNew Error: This error occurs when trying to register a name too soon after making a commitment.