feat: ✨ Added createAddress()
parent
0369331228
commit
010cd22b18
8
main.js
8
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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue