It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
error code: -1
error message:
JSON value is not a string as expected
for (int i = 0; i < request.params.size(); i++) {
std::cout << "param value: " << request.params[i].get_str() << " param type: " <<
request.params[i].getType() << std::endl;
}
std::cout << "inside function" << std:: endl;
const int64_t num_blocks{request.params[0].get_int64()};
const uint64_t max_tries{request.params[3].isNull() ? DEFAULT_MAX_TRIES : request.params[3].get_int64()};
param value: 1 param type: 3
param value: abc param type: 3
param value: abc param type: 3
./bitcoin-cli --datadir=mycustomrpc 1 abc abc
param value: 1 param type: 3
param value: abc param type: 3
param value: abc param type: 3
const int64_t num_blocks{request.params[0].get_int64()};
const uint64_t max_tries{request.params[3].isNull() ? DEFAULT_MAX_TRIES : request.params[3].get_int64()};
std::string str1 = request.params[2].get_str();
CTxDestination destination = DecodeDestination(request.params[1].get_str());
...
error: Error parsing JSON: "abc"
"Param4", RPCArg::Type::NUM, /* default */ ToString(1000), "How many iterations to try."
return RPCHelpMan{"mycustomrpc",
"\nchange definitions(before the RPC call returns)\n",
{
{"Param1", RPCArg::Type::NUM, RPCArg::Optional::NO, ""},
{"Param2", RPCArg::Type::STR, RPCArg::Optional::NO, ""},
{"Param3", RPCArg::Type::STR, RPCArg::Optional::NO, ""},
{"Param4", RPCArg::Type::NUM, /* default */ ToString(1000), "How many iterations to try."}
},
RPCResult{
RPCResult::Type::ARR, "", "",
{
{RPCResult::Type::STR_HEX, "", "param"},
}},
RPCExamples{
"\nChange definitions to bitcoin core\n"
+ HelpExampleCli("mycustomrpc", "param1 \"param2\" \"param3\" ")
},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
error code: -1
error message:
JSON value is not an integer as expected