v1.0.0
A Monero RPC Module for Deno
Repository
Current version released
2 years ago
Dependencies
deno.land/x
Versions
monero_rpc
Monero RPC Library for Deno
Usage
The latest version of monero_rpc can be imported from https://deno.land/x/monero_rpc/mod.ts.
You can also view the documentaton here.
Example
import MoneroDaemonRPC from "https://deno.land/x/monero_rpc/mod.ts";
import MoneroWalletRPC from "https://deno.land/x/monero_rpc/mod.ts";
const daemon = new MoneroDaemonRPC({
host: "localhost",
port: 28081,
});
const wallet = new MoneroWalletRPC({
host: "localhost",
port: 28088,
});
console.log(await daemon.get_block_count()); // { count: 2021823, status: "OK", untrusted: false }
console.log(await wallet.get_height()); // { height: 2021823 }