mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'api' of github.com:jedmccaleb/NewCoin
This commit is contained in:
@@ -1609,8 +1609,19 @@ Json::Value RPCHandler::doRippleLinesGet(const Json::Value ¶ms)
|
||||
}
|
||||
|
||||
// submit any transaction to the network
|
||||
// submit private_key json
|
||||
Json::Value RPCHandler::doSubmit(const Json::Value& params)
|
||||
{
|
||||
RippleAddress naSeed;
|
||||
std::string txJSON= params[1u].asString();
|
||||
|
||||
if (!naSeed.setSeedGeneric(params[0u].asString()))
|
||||
{
|
||||
return rpcError(rpcBAD_SEED);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TODO
|
||||
return rpcError(rpcSRC_ACT_MALFORMED);
|
||||
}
|
||||
@@ -2384,6 +2395,7 @@ Json::Value RPCHandler::doCommand(const std::string& command, Json::Value& param
|
||||
{ "ripple_lines_get", &RPCHandler::doRippleLinesGet, 1, 2, false, optCurrent },
|
||||
{ "ripple_line_set", &RPCHandler::doRippleLineSet, 4, 7, false, optCurrent },
|
||||
{ "send", &RPCHandler::doSend, 3, 9, false, optCurrent },
|
||||
{ "submit", &RPCHandler::doSubmit, 2, 2, false, optCurrent },
|
||||
{ "server_info", &RPCHandler::doServerInfo, 0, 0, true },
|
||||
{ "stop", &RPCHandler::doStop, 0, 0, true },
|
||||
{ "tx", &RPCHandler::doTx, 1, 1, true },
|
||||
|
||||
Reference in New Issue
Block a user