Keith Irwin 6988bfd410 | ||
---|---|---|
README.md | ||
main.js | ||
package-lock.json | ||
package.json |
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}`)