feat: Added methods

main
Keith Irwin 2024-04-21 22:14:40 -06:00
parent 010cd22b18
commit 342ba7d985
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 11 additions and 1 deletions

10
main.js
View File

@ -77,5 +77,15 @@ module.exports = class Wallet {
async createAddress(params) {
return await this.rpc('create_address', params)
}
// Get address from its account and index
async getAddress(params) {
return await this.rpc('get_address', params)
}
// Get address index from its address
async getAddressIndex(addr) {
return await this.rpc('get_address_index',{
address: addr,
})
}
}

View File

@ -1,7 +1,7 @@
{
"name": "monero-wallet-rpc-js",
"type": "commonjs",
"version": "1.2.6",
"version": "1.2.7",
"description": "Javascript wrapper for monero-wallet-rpc calls",
"main": "main.js",
"scripts": {