Javascript wrapper for monero-wallet-rpc calls
 
Go to file
Keith Irwin e0c77d2a38
style: 🎨 Better method outputs
2024-04-21 13:16:44 -06:00
README.md feat: 🎉 Created basic functionality 2024-04-20 14:25:00 -06:00
main.js style: 🎨 Better method outputs 2024-04-21 13:16:44 -06:00
package-lock.json feat: 🎉 Created basic functionality 2024-04-20 14:25:00 -06:00
package.json style: 🎨 Better method outputs 2024-04-21 13:16:44 -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}`)