Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 1,912 Lines • ▼ Show 20 Lines | static UniValue savemempool(const Config &config, | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
// clang-format off | // clang-format off | ||||
static const ContextFreeRPCCommand commands[] = { | static const ContextFreeRPCCommand commands[] = { | ||||
// category name actor (function) argNames | // category name actor (function) argNames | ||||
// ------------------- ------------------------ ---------------------- ---------- | // ------------------- ------------------------ ---------------------- ---------- | ||||
{ "blockchain", "getblockchaininfo", getblockchaininfo, {} }, | |||||
{ "blockchain", "getchaintxstats", &getchaintxstats, {"nblocks", "blockhash"} }, | |||||
{ "blockchain", "getbestblockhash", getbestblockhash, {} }, | { "blockchain", "getbestblockhash", getbestblockhash, {} }, | ||||
{ "blockchain", "getblockcount", getblockcount, {} }, | |||||
{ "blockchain", "getblock", getblock, {"blockhash","verbosity|verbose"} }, | { "blockchain", "getblock", getblock, {"blockhash","verbosity|verbose"} }, | ||||
{ "blockchain", "getblockchaininfo", getblockchaininfo, {} }, | |||||
{ "blockchain", "getblockcount", getblockcount, {} }, | |||||
{ "blockchain", "getblockhash", getblockhash, {"height"} }, | { "blockchain", "getblockhash", getblockhash, {"height"} }, | ||||
{ "blockchain", "getblockheader", getblockheader, {"blockhash","verbose"} }, | { "blockchain", "getblockheader", getblockheader, {"blockhash","verbose"} }, | ||||
{ "blockchain", "getchaintips", getchaintips, {} }, | { "blockchain", "getchaintips", getchaintips, {} }, | ||||
{ "blockchain", "getchaintxstats", getchaintxstats, {"nblocks", "blockhash"} }, | |||||
{ "blockchain", "getdifficulty", getdifficulty, {} }, | { "blockchain", "getdifficulty", getdifficulty, {} }, | ||||
{ "blockchain", "getmempoolancestors", getmempoolancestors, {"txid","verbose"} }, | { "blockchain", "getmempoolancestors", getmempoolancestors, {"txid","verbose"} }, | ||||
{ "blockchain", "getmempooldescendants", getmempooldescendants, {"txid","verbose"} }, | { "blockchain", "getmempooldescendants", getmempooldescendants, {"txid","verbose"} }, | ||||
{ "blockchain", "getmempoolentry", getmempoolentry, {"txid"} }, | { "blockchain", "getmempoolentry", getmempoolentry, {"txid"} }, | ||||
{ "blockchain", "getmempoolinfo", getmempoolinfo, {} }, | { "blockchain", "getmempoolinfo", getmempoolinfo, {} }, | ||||
{ "blockchain", "getrawmempool", getrawmempool, {"verbose"} }, | { "blockchain", "getrawmempool", getrawmempool, {"verbose"} }, | ||||
{ "blockchain", "gettxout", gettxout, {"txid","n","include_mempool"} }, | { "blockchain", "gettxout", gettxout, {"txid","n","include_mempool"} }, | ||||
{ "blockchain", "gettxoutsetinfo", gettxoutsetinfo, {} }, | { "blockchain", "gettxoutsetinfo", gettxoutsetinfo, {} }, | ||||
Show All 24 Lines |