web3_clientVersion
Returns the current MetaMask client version. This differs slightly per client. For example, the browser extension returns a string like MetaMask/v10.33.1
, while the mobile app returns a string like MetaMask/8.1.2/Mobile
.
Params
(0)Result
(CurrentVersion)The current client version.
string
Examples
Example version response from MetaMask.
Request
await window.ethereum.request({
"method": "web3_clientVersion",
"params": []
});
Result
"MetaMask/v10.33.1"