From 7e9dd2ce2a1dd82eca8efa7e4471d11ecd6c6c84 Mon Sep 17 00:00:00 2001 From: Matthew Epps Date: Thu, 21 Apr 2022 15:55:23 -0700 Subject: [PATCH] feat: add method for wallet_getPreferredCurrency --- metamask-openrpc.json | 3 +++ methods/wallet_getPreferredCurrency.json | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 methods/wallet_getPreferredCurrency.json 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" + } + } +}