The address-send
command in Mintlayer is used to send a specified amount of coins to a given address. The wallet automatically calculates the necessary transaction details. Additionally, users have the option to manually select the UTXOs (Unspent Transaction Outputs) to be used in the transaction.
address-send <ADDRESS> <AMOUNT> [UTXOS]...
<ADDRESS>
: The address where the coins will be sent.<AMOUNT>
: The amount of coins to be sent, specified in decimal format.[UTXOS]...
: Optional. Specific UTXOs to spend, provided as additional arguments and separated by spaces. A UTXO can be identified either from a transaction output (formatted as tx(<transaction_id>,<output_index>)
) or a block reward output (formatted as block(<block_id>,<output_index>)
).-h, --help
: Displays help information about the address-send
command.Sending Coins to an Address:
address-send tmt1qxf395dtedem6j83ph46ljju2ktkd52fjcwppvr5 50
This command sends 50 coins to the address tmt1qxf395dtedem6j83ph46ljju2ktkd52fjcwppvr5
. The wallet automatically selects the best UTXOs to use for this transaction.
Upon successful submission, the wallet will display:
The transaction was submitted successfully
Sending Coins Using Specific UTXOs:
address-send tmt1qx8lr7fp7mehn6vgt5vuqytpy5c97fds6u89xhe5 100 tx(000000000000000000059fa50103b9683e51e5aba83b8a34c9b98ce67d66136c,1)
In this example, 100 coins are sent to tmt1qx8lr7fp7mehn6vgt5vuqytpy5c97fds6u89xhe5
using specific UTXOs from a transaction output.