Understand the ENSjs Action pattern
mainENSjs uses an 'Action pattern' where every action is a plain function. The first argument is always the viem Client, and the second argument is an options object containing the necessary parameters.
Read Actions: Use getAction and readContract or multicall, meaning they automatically respect the batching configuration of your client.
Write Actions: Return a transaction hash and accept standard viem write parameters such as account, chain, and gas.
const result = await actionName(client, {
/* params */
})