Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ThePiachu on February 09, 2012, 07:17:54 PM



Title: Bitcoind API list on wiki, changes since 0.4?
Post by: ThePiachu on February 09, 2012, 07:17:54 PM
I've been looking at the wiki page for Bitcoind API calls - https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list , an I see it hasn't been updated since version 0.4. What are the changes to the list since the wiki was last updated?


Title: Re: Bitcoind API list on wiki, changes since 0.4?
Post by: btc_artist on February 10, 2012, 02:51:44 PM
Does this help?  https://github.com/bitcoin/bitcoin/blob/master/src/bitcoinrpc.cpp  I know two that were added recently are dumpprivkey and importprivkey.

Code:
//
// Call Table
//

pair<string, rpcfn_type> pCallTable[] =
{
    make_pair("help",                   &help),
    make_pair("stop",                   &stop),
    make_pair("getblockcount",          &getblockcount),
    make_pair("getblocknumber",         &getblocknumber),
    make_pair("getconnectioncount",     &getconnectioncount),
    make_pair("getdifficulty",          &getdifficulty),
    make_pair("getgenerate",            &getgenerate),
    make_pair("setgenerate",            &setgenerate),
    make_pair("gethashespersec",        &gethashespersec),
    make_pair("getinfo",                &getinfo),
    make_pair("getmininginfo",          &getmininginfo),
    make_pair("getnewaddress",          &getnewaddress),
    make_pair("getaccountaddress",      &getaccountaddress),
    make_pair("setaccount",             &setaccount),
    make_pair("getaccount",             &getaccount),
    make_pair("getaddressesbyaccount",  &getaddressesbyaccount),
    make_pair("sendtoaddress",          &sendtoaddress),
    make_pair("getreceivedbyaddress",   &getreceivedbyaddress),
    make_pair("getreceivedbyaccount",   &getreceivedbyaccount),
    make_pair("listreceivedbyaddress",  &listreceivedbyaddress),
    make_pair("listreceivedbyaccount",  &listreceivedbyaccount),
    make_pair("backupwallet",           &backupwallet),
    make_pair("keypoolrefill",          &keypoolrefill),
    make_pair("walletpassphrase",       &walletpassphrase),
    make_pair("walletpassphrasechange", &walletpassphrasechange),
    make_pair("walletlock",             &walletlock),
    make_pair("encryptwallet",          &encryptwallet),
    make_pair("validateaddress",        &validateaddress),
    make_pair("getbalance",             &getbalance),
    make_pair("move",                   &movecmd),
    make_pair("sendfrom",               &sendfrom),
    make_pair("sendmany",               &sendmany),
    make_pair("addmultisigaddress",     &addmultisigaddress),
    make_pair("getblock",               &getblock),
    make_pair("getblockhash",           &getblockhash),
    make_pair("gettransaction",         &gettransaction),
    make_pair("listtransactions",       &listtransactions),
    make_pair("signmessage",            &signmessage),
    make_pair("verifymessage",          &verifymessage),
    make_pair("getwork",                &getwork),
    make_pair("listaccounts",           &listaccounts),
    make_pair("settxfee",               &settxfee),
    make_pair("getmemorypool",          &getmemorypool),
    make_pair("listsinceblock",         &listsinceblock),
    make_pair("dumpprivkey",            &dumpprivkey),
    make_pair("importprivkey",          &importprivkey)
};