diff --git a/metamask-openrpc.json b/metamask-openrpc.json index 4b91675..dd58c46 100644 --- a/metamask-openrpc.json +++ b/metamask-openrpc.json @@ -14,6 +14,9 @@ { "$ref": "./methods/wallet_requestPermissions.json" }, + { + "$ref": "./methods/wallet_getPreferredCurrency.json" + }, { "$ref": "./methods/wallet_getPermissions.json" }, diff --git a/methods/wallet_getPreferredCurrency.json b/methods/wallet_getPreferredCurrency.json new file mode 100644 index 0000000..8724767 --- /dev/null +++ b/methods/wallet_getPreferredCurrency.json @@ -0,0 +1,17 @@ +{ + "tags": [ + { + "$ref": "../tags/Metamask.json" + } + ], + "name": "wallet_getPreferredCurrency", + "summary": "Get preferred currency", + "description": "Get the user's preferred base currency.", + "params": [], + "result": { + "name": "CurrencyResult", + "schema": { + "type": "string" + } + } +}