feat: Added getTransfers()

main
Keith Irwin 2024-04-21 22:36:53 -06:00
parent 342ba7d985
commit 9e9b6569ad
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 6 additions and 2 deletions

View File

@ -83,9 +83,13 @@ module.exports = class Wallet {
} }
// Get address index from its address // Get address index from its address
async getAddressIndex(addr) { async getAddressIndex(addr) {
return await this.rpc('get_address_index',{ return await this.rpc('get_address_index', {
address: addr, address: addr,
}) })
} }
// Get transfers
async getTransfers(params) {
return await this.rpc('get_transfers', params)
}
} }

View File

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