Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/monero_rpc/mod.ts>MoneroDaemonRPC

A Monero RPC Module for Deno
Latest
class MoneroDaemonRPC
import { MoneroDaemonRPC } from "https://deno.land/x/monero_rpc@v1.0.3/mod.ts";

Constructors

new
MoneroDaemonRPC(unnamed 0: Args)

initializes a new instance of the BitcoinRPC class.

Properties

auth: boolean
optional
client: DigestClient
url: string

Methods

get_block(height?: number, hash?: number)
get_block_headers_range(start_height: number, end_height: number)
get_block_template(wallet_address: string, reserve_size: number)
get_coinbase_tx_sum(height: number, count: number)
get_fee_estimate(grace_blocks?: number)
get_output_distribution(
amounts: Array<number>,
cumulative?: number,
from_height?: number,
to_height?: number,
)
get_output_histogram(
amounts: Array<number>,
min_count: number,
max_count: number,
unlocked: number,
recent_cutoff: number,
)
on_get_block_hash(height: Array<number>)
relay_tx(txids: Array<string>)
request(
method: string,
paramVars: any[],
paramNames: any[],
)

Make a request to the Monero JSON RPC.

set_bans(bans: Array<{ host: string; ip: number; ban: boolean; seconds: number; }>)
submit_block(blob: Array<string>)