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.

Enjoy cool stuff! Enjoy Magento 2!! Enjoy Magewallet!!!

Mahendra Paladiya
Mahendra is a Web Developer whose passions includes web development, technical blog writing, and database management. His passion for web development pushed him into learning how to handle different platforms like Core PHP, Magento, Prestashop, WordPress, CodeIgniter, CakePHP and Oracle.