feat: Added createAddress()

main
Keith Irwin 2024-04-21 18:20:35 -06:00
parent 0369331228
commit 010cd22b18
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 7 additions and 3 deletions

View File

@ -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)
}
}

View File

@ -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": {