feat: ✨ Added getTransfers()
parent
342ba7d985
commit
9e9b6569ad
6
main.js
6
main.js
|
@ -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)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue