Skip to content

Commit

Permalink
Added web3_clientVersion (#164)
Browse files Browse the repository at this point in the history
* Added web3_clientVersion

* Added better description and examples to web3_clientVersion
  • Loading branch information
shanejonas authored Nov 1, 2023
1 parent 5413850 commit 19aa10c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,42 @@
"$ref": "#/components/schemas/bytes32"
}
}
},
{
"name": "web3_clientVersion",
"description": "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`.",
"summary": "Current client version.",
"params": [],
"examples": [
{
"name": "MetaMaskClientVersionExample",
"description": "Example version response from MetaMask.",
"params": [],
"result": {
"name": "MetaMaskClientVersion",
"description": "The current client version.",
"value": "MetaMask/v10.33.1"
}
},
{
"name": "MetaMaskMobileClientVersionExample",
"description": "Example version response from MetaMask Mobile.",
"params": [],
"result": {
"name": "MetaMaskClientVersion",
"description": "The current client version.",
"value": "MetaMask/8.1.2/Mobile"
}
}
],
"result": {
"name": "CurrentVersion",
"description": "The current client version.",
"schema": {
"title": "CurrentClientVersion",
"type": "string"
}
}
}
],
"components": {
Expand Down

0 comments on commit 19aa10c

Please sign in to comment.