feat: ✨ Added methods
parent
010cd22b18
commit
342ba7d985
10
main.js
10
main.js
|
@ -77,5 +77,15 @@ module.exports = class Wallet {
|
||||||
async createAddress(params) {
|
async createAddress(params) {
|
||||||
return await this.rpc('create_address', 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,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "monero-wallet-rpc-js",
|
"name": "monero-wallet-rpc-js",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"version": "1.2.6",
|
"version": "1.2.7",
|
||||||
"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