83 {
84 ilog(
"starting wallet_api_plugin");
85
86 auto& wallet_mgr =
app().
get_plugin<wallet_plugin>().get_wallet_manager();
87
91
97 INVOKE_R_R(wallet_mgr, create, std::string), 201),
99 INVOKE_V_R(wallet_mgr, open, std::string), 200),
103 INVOKE_V_R(wallet_mgr, lock, std::string), 200),
105 INVOKE_V_R_R(wallet_mgr, unlock, std::string, std::string), 200),
107 INVOKE_V_R_R(wallet_mgr, import_key, std::string, std::string), 201),
109 INVOKE_V_R_R_R(wallet_mgr, remove_key, std::string, std::string, std::string), 201),
111 INVOKE_R_R_R(wallet_mgr, create_key, std::string, std::string), 201),
115 INVOKE_R_R_R(wallet_mgr, list_keys, std::string, std::string), 200),
118 });
119}
#define CALL_WITH_400(api_name, api_handle, api_namespace, call_name, http_response_code, params_type)
#define INVOKE_R_V(api_handle, call_name)
checksum_type digest_type
#define INVOKE_V_R(api_handle, call_name, in_param)
#define INVOKE_V_V(api_handle, call_name)
#define INVOKE_R_R(api_handle, call_name, in_param)
void sign_transaction(signed_transaction &trx, fc::variant &required_keys, const chain_id_type &chain_id)
#define INVOKE_V_R_R_R(api_handle, call_name, in_param0, in_param1, in_param2)
#define INVOKE_V_R_R(api_handle, call_name, in_param0, in_param1)
#define INVOKE_R_R_R_R(api_handle, call_name, in_param0, in_param1, in_param2)
#define INVOKE_R_R_R(api_handle, call_name, in_param0, in_param1)