From 010cd22b18eb03a42f0aa260f626ea8101d71bd6 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sun, 21 Apr 2024 18:20:35 -0600 Subject: [PATCH] feat: :sparkles: Added createAddress() --- main.js | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 05f15b1..6fa143c 100644 --- a/main.js +++ b/main.js @@ -62,8 +62,8 @@ module.exports = class Wallet { return Number((await this.rpc('get_height')).height) } // Get wallet balance - async getBalance() { - return Number((await this.rpc('get_balance'))) + async getBalance(params) { + return Number((await this.rpc('get_balance', params))) } // Save wallet async store() { @@ -73,5 +73,9 @@ module.exports = class Wallet { async close() { return await this.rpc('close_wallet') } + // Create address + async createAddress(params) { + return await this.rpc('create_address', params) + } } diff --git a/package.json b/package.json index 9c5c7cc..233e844 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "monero-wallet-rpc-js", "type": "commonjs", - "version": "1.2.5", + "version": "1.2.6", "description": "Javascript wrapper for monero-wallet-rpc calls", "main": "main.js", "scripts": {