Class: MoneroSendRequest

MoneroSendRequest({json|uint|string|, param2, param3, param4)

Configures a request to send/sweep funds or create a payment URI. TODO: allow setAddress(), setAmount() for default destination?

Constructor

new MoneroSendRequest({json|uint|string|, param2, param3, param4)

Construct the request. Examples of invoking this constructor: new MoneroSendRequest(); new MoneroSendRequest({accountIndex: 0, address: "59aZULsUF3YN...", amount: new BigInteger(5), priority: MoneroSendPriority.NORMAL}); new MoneroSendRequest(0); // create request with account 0 new MoneroSendRequest("59aZULsUF3YN..."); // create request with destination with address new MoneroSendRequest(0, "59aZULsUF3YN...", new BigInteger(5)); new MoneroSendRequest(0, "59aZULsUF3YN...", new BigInteger(5), MoneroSendPriority.NORMAL); new MoneroSendRequest("59aZULsUF3YN...", new BigInteger(5)); new MoneroSendRequest("59aZULsUF3YN...", new BigInteger(5), MoneroSendPriority.NORMAL);
Parameters:
Name Type Description
{json|uint|string| param1 is request json, an account index, a string address
param2 string | BigInteger is an address to send to or the requested amount to send
param3 BigInteger | int is the requested amount to send if not already given or priority
param4 int priority is the requested priority
Source:

Methods

getKeyImage()

Get the key image hex of the output to sweep. return {string} is the key image hex of the output to sweep
Source:

setKeyImage(keyImage)

Set the key image hex of the output to sweep.
Parameters:
Name Type Description
keyImage string is the key image hex of the output to sweep
Source: