In order to retrieve version of any extension/module in Magento 2, you can use following code snippet.

Here, Wallet is vendor name and Version is module name. Team HiddenTechiesWrite an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!