Javascript wrapper for monero-wallet-rpc calls
 
Go to file
Keith Irwin 3f2c60b00d
fix: 🐛 Added parenthesis
2024-04-21 13:18:25 -06:00
README.md feat: 🎉 Created basic functionality 2024-04-20 14:25:00 -06:00
main.js fix: 🐛 Added parenthesis 2024-04-21 13:18:25 -06:00
package-lock.json feat: 🎉 Created basic functionality 2024-04-20 14:25:00 -06:00
package.json fix: 🐛 Added parenthesis 2024-04-21 13:18:25 -06:00

README.md

monero-wallet-rpc-js

Simple wrapper for monero-wallet-rpc calls.

import Wallet from 'monero-wallet-rpc-js'

// Create a new walletRpc connection
const wallet = new Wallet({
	url: 'http://localhost:18082',
	filename: 'mywallet',
	password: 'secretpassword',
	address: '4....',
	viewKey: 'XXXXXXX....',
	restoreHeight: '573936',
})

// Call it
let height = await wallet.rpc('get_height')
console.log(`Synced height: ${height}`)