Author Topic: OKCash RPC Calls  (Read 210 times)

OKtoshi

  • Jr. Member
  • **
  • Posts: 99
  • Trust: 7
    • View Profile
OKCash RPC Calls
« on: October 07, 2016, 12:25:21 PM »
Use directly in graphic console,

or for command line Use:

 okcashd COMMAND

example: 
 
 okcashd getinfo

OK RPC Calls

addmultisigaddress <nrequired> <'["key","key"]'> [account]
addnode <node> <add|remove|onetry>
addredeemscript <redeemScript> [account]
backupwallet <destination>
checkwallet
clearwallettransactions
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
decoderawtransaction <hex string>
decodescript <hex string>
dumpprivkey <okcashaddress>
dumpwallet <filename>
encryptwallet <passphrase>
getaccount <okcashaddress>
getaccountaddress <account>
getaddednodeinfo <dns> [node]
getaddressesbyaccount <account>
getbalance [account] [minconf=1]
getbestblockhash
getblock <hash> [txinfo]
getblockbynumber <number> [txinfo]
getblockcount
getblockhash <index>
getblocktemplate [params]
getcheckpoint
getconnectioncount
getdifficulty
getinfo
getmininginfo
getnetworkinfo
getnewaddress [account]
getnewpubkey [account]
getnewstealthaddress [label]
getpeerinfo
getrawmempool
getrawtransaction <txid> [verbose=0]
getreceivedbyaccount <account> [minconf=1]
getreceivedbyaddress <okcashaddress> [minconf=1]
getstakinginfo
getsubsidy [nTarget]
gettransaction <txid>
getwork [data]
getworkex [data, coinbase]
help [command]
importprivkey <okcashprivkey> [label]
importstealthaddress <scan_secret> <spend_secret> [label]
importwallet <filename>
keypoolrefill [new-size]
listaccounts [minconf=1]
listaddressgroupings
listreceivedbyaccount [minconf=1] [includeempty=false]
listreceivedbyaddress [minconf=1] [includeempty=false]
listsinceblock [blockhash] [target-confirmations]
liststealthaddresses [show_secrets=0]
listtransactions [account] [count=10] [from=0] [show_coinstake=1]
listunspent [minconf=1] [maxconf=9999999] ["address",...]
makekeypair [prefix]
move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
nextorphan [connecthash]
repairwallet
resendtx
reservebalance [<reserve> [amount]]
rewindchain <number>
scanforalltxns [fromHeight]
scanforstealthtxns [fromHeight]
sendalert <message> <privatekey> <minver> <maxver> <priority> <id> [cancelupto]
sendfrom <fromaccount> <tookcashaddress> <amount> [minconf=1] [comment] [comment-to] [narration]
sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
sendrawtransaction <hex string>
sendtoaddress <okcashaddress> <amount> [comment] [comment-to] [narration]
sendtostealthaddress <stealth_address> <amount> [comment] [comment-to] [narration]
setaccount <okcashaddress> <account>
setbestblockbyheight <height>
settxfee <amount>
signmessage <okcashaddress> <message>
signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [<privatekey1>,...] [sighashtype="ALL"]
smsgaddkey <address> <pubkey>
smsgbuckets [stats|dump]
smsgdisable
smsgenable
smsggetpubkey <address>
smsginbox [all|unread|clear]
smsglocalkeys [whitelist|all|wallet|recv <+/-> <address>|anon <+/-> <address>]
smsgoptions [list|set <optname> <value>]
smsgoutbox [all|clear]
smsgscanbuckets
smsgscanchain
smsgsend <addrFrom> <addrTo> <message>
smsgsendanon <addrTo> <message>
stop
submitblock <hex data> [optional-params-obj]
thinforcestate <state>
thinscanmerkleblocks <height>
txnreport [collate_amounts] [show_key_images]
validateaddress <okcashaddress>
validatepubkey <okcashpubkey>
verifymessage <okcashaddress> <signature> <message>
OK is open-source; its design is public, nobody owns or controls OK and everyone can take part.