Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. root@coind:~# litecoin-cli help sendfrom
  2. sendfrom "fromaccount" "toaddress" amount ( minconf "comment" "comment_to" )
  3.  
  4. DEPRECATED (use sendtoaddress). Sent an amount from an account to a litecoin address.
  5.  
  6. Arguments:
  7. 1. "fromaccount" (string, required) The name of the account to send funds from. May be the default account using "".
  8. Specifying an account does not influence coin selection, but it does associate the newly created
  9. transaction with the account, so the account's balance computation and transaction history can reflect
  10. the spend.
  11. 2. "toaddress" (string, required) The litecoin address to send funds to.
  12. 3. amount (numeric or string, required) The amount in LTC (transaction fee is added on top).
  13. 4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
  14. 5. "comment" (string, optional) A comment used to store what the transaction is for.
  15. This is not part of the transaction, just kept in your wallet.
  16. 6. "comment_to" (string, optional) An optional comment to store the name of the person or organization
  17. to which you're sending the transaction. This is not part of the transaction,
  18. it is just kept in your wallet.
  19.  
  20. Result:
  21. "txid" (string) The transaction id.
  22.  
  23. Examples:
  24.  
  25. Send 0.01 LTC from the default account to the address, must have at least 1 confirmation
  26. > litecoin-cli sendfrom "" "LEr4HnaefWYHbMGXcFp2Po1NPRUeIk8km2" 0.01
  27.  
  28. Send 0.01 from the tabby account to the given address, funds must have at least 6 confirmations
  29. > litecoin-cli sendfrom "tabby" "LEr4HnaefWYHbMGXcFp2Po1NPRUeIk8km2" 0.01 6 "donation" "seans outpost"
  30.  
  31. As a json rpc call
  32. > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendfrom", "params": ["tabby", "LEr4HnaefWYHbMGXcFp2Po1NPRUeIk8km2", 0.01, 6, "donation", "seans outpost"] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/
  33.  
  34. root@coind:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement