feat: ✨ added getAccounts()
parent
fd6a76a583
commit
f76eaf41e1
4
main.js
4
main.js
|
@ -73,6 +73,10 @@ module.exports = class Wallet {
|
||||||
async close() {
|
async close() {
|
||||||
return await this.rpc('close_wallet')
|
return await this.rpc('close_wallet')
|
||||||
}
|
}
|
||||||
|
// Get accounts
|
||||||
|
async getAccounts(params={}) {
|
||||||
|
return await this.rpc('get_accounts', params)
|
||||||
|
}
|
||||||
// Create account
|
// Create account
|
||||||
async createAccount(label) {
|
async createAccount(label) {
|
||||||
if (!label) return await this.rpc('create_account')
|
if (!label) return await this.rpc('create_account')
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "monero-wallet-rpc-js",
|
"name": "monero-wallet-rpc-js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "1.2.19",
|
"version": "1.2.20",
|
||||||
"description": "Javascript wrapper for monero-wallet-rpc calls",
|
"description": "Javascript wrapper for monero-wallet-rpc calls",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue