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
sendIndicates 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
Protected
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 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 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.