RPC

From EverGreenCoin
Jump to: navigation, search

EverGreenCoin has a full set of RPC commands which you can invoke from the debug console or from command line.

List of Commands

addmultisigaddress <nrequired> <'["key","key"]'> [account]
addredeemscript <redeemScript> [account]
backupwallet <destination>
checkwallet
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
decoderawtransaction <hex string>
decodescript <hex string>
dumpprivkey <evergreencoinaddress>
dumpwallet <filename>
encryptwallet <passphrase>
getaccount <evergreencoinaddress>
getaccountaddress <account>
getaddressesbyaccount <account>
getbalance [account] [minconf=1]
getbestblockhash
getblock <hash> [txinfo]
getblock <number> [txinfo]
getblockcount
getblockhash <index>
getblocktemplate [params]
getcheckpoint
getconnectioncount
getdifficulty
getinfo
getmininginfo
getnewaddress [account]
getnewpubkey [account]
getpeerinfo
getrawmempool
getrawtransaction <txid> [verbose=0]
getreceivedbyaccount <account> [minconf=1]
getreceivedbyaddress <evergreencoinaddress> [minconf=1]
getstakinginfo
getsubsidy [nTarget]
gettransaction <txid>
getwork [data]
getworkex [data, coinbase]
help [command]
importaddress <address> [label] [rescan default true]
importprivkey <evergreencoinprivkey> [label]
importwallet <filename>
keypoolrefill [new-size]
listaccounts [minconf=1]
listaddressgroupings
listreceivedbyaccount [minconf=1] [includeempty=false]
listreceivedbyaddress [minconf=1] [includeempty=false]
listsinceblock [blockhash] [target-confirmations]
listtransactions [account] [count=10] [from=0]
listunspent [minconf=1] [maxconf=9999999]  ["address",...]
makekeypair [prefix]
move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
repairwallet
resendtx
reservebalance [<reserve> [amount]]
sendalert <message> <privatekey> <minver> <maxver> <priority> <id> [cancelupto]
sendfrom <fromaccount> <toevergreencoinaddress> <amount> [minconf=1] [comment] [comment-to]
sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
sendrawtransaction <hex string>
sendtoaddress <evergreencoinaddress> <amount> [comment] [comment-to]
setaccount <evergreencoinaddress> <account>
settxfee <amount>
signmessage <evergreencoinaddress> <message>
signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [<privatekey1>,...] [sighashtype="ALL"]
stakeforcharity <evergreencoinaddress> <percent> [Change Address] [min amount] [max amount]
stop <detach>
submitblock <hex data> [optional-params-obj]
validateaddress <evergreencoinaddress>
validatepubkey <evergreencoinpubkey>
verifymessage <evergreencoinaddress> <signature> <message>

Deprecated

The following RPC commands are deprecated and should not be used:

  • TODO

Command Reference

checkwallet

checkwallet

Check wallet for integrity.

Example:

$ evergreencoind checkwallet
{
    "wallet check passed" : true
}

dumpwallet

dumpwallet <filename>

Dumps all wallet keys in a human-readable format.

getinfo

getinfo

Returns an object containing various state info.

Example:

$ evergreencoind getinfo
{
    "version" : "v1.7.3.1: EVER",
    "protocolversion" : 80015,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "unconfirmed" : 0.00000000,
    "immature" : 0.00000000,
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 1031236,
    "timeoffset" : 0,
    "moneysupply" : 13507078.43251620,
    "connections" : 71,
    "proxy" : "",
    "ip" : "x.x.x.x",
    "difficulty" : {
        "proof-of-work" : 9.61024484,
        "proof-of-stake" : 0.11692531
    },
    "testnet" : false,
    "keypoololdest" : 1516971409,
    "keypoolsize" : 101,
    "paytxfee" : 0.00010000,
    "mininput" : 0.00000000,
    "errors" : ""
}