feat: added getAccounts()

main
Keith Irwin 2024-04-22 17:26:08 -06:00
parent fd6a76a583
commit f76eaf41e1
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 5 additions and 1 deletions

View File

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

View File

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