From f76eaf41e1b2b18aaeac6e268e53e88ac69b7e22 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 22 Apr 2024 17:26:08 -0600 Subject: [PATCH] feat: :sparkles: added getAccounts() --- main.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 50d1aa3..afcd6c1 100644 --- a/main.js +++ b/main.js @@ -73,6 +73,10 @@ module.exports = class Wallet { async close() { return await this.rpc('close_wallet') } + // Get accounts + async getAccounts(params={}) { + return await this.rpc('get_accounts', params) + } // Create account async createAccount(label) { if (!label) return await this.rpc('create_account') diff --git a/package.json b/package.json index a477474..e4c4f90 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.19", + "version": "1.2.20", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {