Construct a RPC connection.
Examples:
let connection1 = new MoneroRpcConnection("http://localhost:38081", "daemon_user", "daemon_password_123")
let connection2 = new MoneroRpcConnection({
uri: http://localhost:38081,
username: "daemon_user",
password: "daemon_password_123",
rejectUnauthorized: false, // accept self-signed certificates e.g. for local development
proxyToWorker: true // proxy request to worker (default false)
});
MoneroRpcConnection or URI of the RPC endpoint
Optional username: stringusername to authenticate with the RPC endpoint (optional)
Optional password: stringpassword to authenticate with the RPC endpoint (optional)
Protected attributesProtected checkProtected fakeProtected isProtected isProtected responseProtected sendProtected queueProtected queueSend a RPC request to the given path and with the given paramters.
E.g. "/get_transactions" with params
JSON RPC path to invoke
Optional params: anyrequest parameters
Optional timeoutMs: anyoverrides the request timeout in milliseconds
is the response map
Set the connection's authenticated status.
sets if the connection is authenticated
this connection
Set the connection's online status.
sets if the connection is online
this connection
Set the connection's priority relative to other connections. Priority 1 is highest, then priority 2, etc. The default priority of 0 is lowest priority.
Optional priority: anythe connection priority (default 0)
this connection
Set the connection's response time.
response time in milliseconds
this connection
Set the RPC request timeout in milliseconds.
is the timeout in milliseconds, 0 to disable timeout, or undefined to use default
this connection
Protected validateStatic Protected validateGenerated using TypeDoc
Maintains a connection and sends requests to a Monero RPC API.