sendtoaddress - Okcash RPC
sendtoaddress ( okcashaddress ) ( amount ) [comment] [comment-to] [narration] Send an amount to a given address. Arguments: 1. "address" (string, required) The Okcash address to send to. 2. amount (numeric or string, required) The amount in OK 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. "narration" (string, optional) Up to 24 characters sent with the transaction. The narration is stored in the blockchain and is sent encrypted when destination is a stealth address and unencrypted otherwise. The recipient will receive less bitcoins than you enter in the amount field. Result: "txid" (string) The transaction id. Examples: > okcashd sendtoaddress "PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz" 0.1 > okcashd sendtoaddress "PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz" 0.1 "donation" "crowdfunding site" > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz", 0.1, "donation", "crowdfunding site"] }' -H 'content-type: text/plain;' http://127.0.0.1:6969/
Okcash Core RPC documentation.
Okcash version: 5.0.0.3
OK RPC docs at:Github
Rawtransactions
Smsg
Wallet
addmultisigaddress
backupwallet
clearwallettransactions
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getnewstealthaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
importprivkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
move
reservebalance
rewindchain
sendmany
sendtoaddress
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange
backupwallet
clearwallettransactions
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getnewstealthaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
importprivkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
move
reservebalance
rewindchain
sendmany
sendtoaddress
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange