95 {
96 ilog(
"starting chain_api_plugin" );
97 my.reset(
new chain_api_plugin_impl(
app().get_plugin<chain_plugin>().chain()));
99 auto ro_api = chain.get_read_only_api();
100 auto rw_api = chain.get_read_write_api();
101
103 ro_api.set_shorten_abi_errors( !_http_plugin.verbose_errors() );
104
105 _http_plugin.add_api( {
107 _http_plugin.add_api({
135 });
136
137 if (chain.account_queries_enabled()) {
138 _http_plugin.add_async_api({
140 });
141 }
142
143 if (chain.transaction_finality_status_enabled()) {
144 _http_plugin.add_async_api({
146 });
147 }
148}
#define CHAIN_RO_CALL_ASYNC(call_name, call_result, http_response_code, params_type)
#define CHAIN_RW_CALL_ASYNC(call_name, call_result, http_response_code, params_type)
#define CHAIN_RO_CALL_WITH_400(call_name, http_response_code, params_type)
#define CHAIN_RO_CALL(call_name, http_response_code, params_type)
abstract_plugin & get_plugin(const string &name) const
push_transaction_results send_transaction_results
vector< push_transaction_results > push_transactions_results
void get_account(const string &accountName, const string &coresym, bool json_format)
sysio::chain_apis::read_only::get_info_results get_info()
void send_transaction(signed_transaction &trx, packed_transaction::compression_type compression=packed_transaction::compression_type::none)
fc::variant push_transaction(signed_transaction &trx, packed_transaction::compression_type compression=packed_transaction::compression_type::none)
static constexpr int medium_high