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
fakeProtected
isProtected
isProtected
responseIndicates if the connection is authenticated according to the last call to checkConnection().
Note: must call checkConnection() manually unless using MoneroConnectionManager.
true if authenticated or no authentication, false if not authenticated, or undefined if checkConnection() has not been called
Indicates if the connection is connected according to the last call to checkConnection().
Note: must call checkConnection() manually unless using MoneroConnectionManager.
true or false to indicate if connected, or undefined if checkConnection() has not been called
Send 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
timeoutInMs: anyrequest timeout in milliseconds
is the response map
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
Static
Protected
validateStatic
Protected
validateGenerated using TypeDoc
Maintains a connection and sends requests to a Monero RPC API.