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)
|
return Number((await this.rpc('get_height')).height)
|
||||||
}
|
}
|
||||||
// Get wallet balance
|
// Get wallet balance
|
||||||
async getBalance() {
|
async getBalance(params) {
|
||||||
return Number((await this.rpc('get_balance')))
|
return Number((await this.rpc('get_balance', params)))
|
||||||
}
|
}
|
||||||
// Save wallet
|
// Save wallet
|
||||||
async store() {
|
async store() {
|
||||||
|
@ -73,5 +73,9 @@ module.exports = class Wallet {
|
||||||
async close() {
|
async close() {
|
||||||
return await this.rpc('close_wallet')
|
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",
|
"name": "monero-wallet-rpc-js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"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