Constructor
new MoneroTxConfig(config)
Generic request to transfer funds from a wallet.
Examples:
let config1 = new MoneroTxConfig({
accountIndex: 0,
address: "59aZULsUF3YN...",
amount: new BigInteger("500000"),
priority: MoneroTxPriority.NORMAL,
relay: true
});
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
MoneroTxConfig | object | configures the transaction to create (optional)
Properties
|
Methods
addDestination()
copy()
getAccountIndex()
getAddress() → {string}
Get the address of a single-destination configuration.
Returns:
the address of the single destination
- Type
- string
getAmount() → {BigInteger}
Get the amount of a single-destination configuration.
Returns:
the amount of the single destination
- Type
- BigInteger
getBelowAmount()
getCanSplit()
getDestinations()
getFee()
getKeyImage()
Get the key image hex of the output to sweep.
return {string} is the key image hex of the output to sweep
getNote()
getPaymentId()
getPriority()
getRecipientName()
getRelay()
getSubaddressIndices()
getSweepEachSubaddress()
getUnlockHeight()
setAccountIndex()
setAddress(address) → {MoneroTxConfig}
Set the address of a single-destination configuration.
Parameters:
Name | Type | Description |
---|---|---|
address |
string | the address to set for the single destination |
Returns:
this configuration for chaining
- Type
- MoneroTxConfig
setAmount(amount) → {MoneroTxConfig}
Set the amount of a single-destination configuration.
Parameters:
Name | Type | Description |
---|---|---|
amount |
BigInteger | string | the amount to set for the single destination |
Returns:
this configuration for chaining
- Type
- MoneroTxConfig
setBelowAmount()
setCanSplit()
setDestination()
setDestinations()
setFee()
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 |