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