I am using Node JS and ethereum smart-contract. Every time contract gets deployed new addresses generated.

Is there a way that node JS always gets an updated address of a contract? Any API so that I don't have to go and update in node to connect contract through new address every time I deploy.


I would suggest you register your contract with Ethereum Name System (ENS) during the deployment.

  • Create an ENS name

  • Update its ADDRESS record to point to the latest contract deployment during the deployment


You can do this programmatically from JavaScript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.