sendtoaddress - Pastel RPC

sendtoaddress "t-address" amount ("comment" "comment-to" subtractFeeFromAmount "change-address")
Send an amount to a given address. The amount is a real and is rounded to the nearest 0.00000001.
By default, the change is sent to the original address.
") + HelpRequiringPassphrase() + R"(

Arguments:
1. "t-address"   (string, required) The Pastel address to send to.
2. "amount"      (numeric, required) The amount in PSL to send. eg 0.1
3. "comment"     (string, optional) A comment used to store what the transaction is for.
                            This is not part of the transaction, just kept in your wallet.
4. "comment-to"  (string, optional) A comment to store the name of the person or organization 
                             to which you're sending the transaction. This is not part of the 
                             transaction, just kept in your wallet.
5. subtractFeeFromAmount  (boolean, optional, default=false) The fee will be deducted from the amount being sent.
                             The recipient will receive less Pastel than you enter in the amount field.
6. "change-address" (string, optional, default="original") The destination address to send the change to, can be one of the following:
	- "original" - Send the change to the original address (default);
	- "new" - Send the change to the new generated t-address
	- <change t-address> - Send the change to the given Pastel t-address

Result:
"transactionid"  (string) The transaction id.

Examples:
> pastel-cli sendtoaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" 0.1
> pastel-cli sendtoaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" 0.1 "donation" "seans outpost"
> pastel-cli sendtoaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" 0.1 "" "" true
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n", 0.1, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node