BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
The login_api class implements the bottom layer of the RPC API. More...
#include <api.hpp>
Public Member Functions | |
login_api (application &a) | |
variant | login (const optional< string > &user, const optional< string > &password) |
Authenticate to the RPC server, or retrieve the API set ID of the login API set. More... | |
bool | logout () |
Log out. More... | |
string | get_info () const |
Retrive the node info string configured by the node operator. More... | |
application_options | get_config () const |
Retrieve configured application options. More... | |
flat_set< string > | get_available_api_sets () const |
Retrieve a list of API sets that the user has access to. More... | |
fc::api< block_api > | block () |
Retrieve the network block API set. More... | |
fc::api< network_broadcast_api > | network_broadcast () |
Retrieve the network broadcast API set. More... | |
fc::api< database_api > | database () |
Retrieve the database API set. More... | |
fc::api< history_api > | history () |
Retrieve the history API set. More... | |
fc::api< network_node_api > | network_node () |
Retrieve the network node API set. More... | |
fc::api< crypto_api > | crypto () |
Retrieve the cryptography API set. More... | |
fc::api< asset_api > | asset () |
Retrieve the asset API set. More... | |
fc::api< orders_api > | orders () |
Retrieve the orders API set. More... | |
fc::api< graphene::debug_witness::debug_api > | debug () |
Retrieve the debug API set. More... | |
fc::api< custom_operations_api > | custom_operations () |
Retrieve the custom operations API set. More... | |
fc::api< dummy_api > | dummy () |
Retrieve a dummy API set, not reflected. More... | |
bool | is_database_api_allowed () const |
Check whether database_api is allowed, not reflected. More... | |
The login_api class implements the bottom layer of the RPC API.
All other APIs must be requested from this API.
|
explicit |
fc::api< crypto_api > graphene::app::login_api::crypto | ( | ) |
fc::api< custom_operations_api > graphene::app::login_api::custom_operations | ( | ) |
fc::api< database_api > graphene::app::login_api::database | ( | ) |
fc::api< graphene::debug_witness::debug_api > graphene::app::login_api::debug | ( | ) |
flat_set< string > graphene::app::login_api::get_available_api_sets | ( | ) | const |
application_options graphene::app::login_api::get_config | ( | ) | const |
string graphene::app::login_api::get_info | ( | ) | const |
fc::api< history_api > graphene::app::login_api::history | ( | ) |
bool graphene::app::login_api::is_database_api_allowed | ( | ) | const |
Check whether database_api is allowed, not reflected.
variant graphene::app::login_api::login | ( | const optional< string > & | user, |
const optional< string > & | password | ||
) |
Authenticate to the RPC server, or retrieve the API set ID of the login API set.
user | Username to login with, optional |
password | Password to login with, optional |
user
and password
to authenticate, or provide none of them (or null without quotes) to retrieve the API set ID of the login API set. bool graphene::app::login_api::logout | ( | ) |
fc::api< network_broadcast_api > graphene::app::login_api::network_broadcast | ( | ) |
fc::api< network_node_api > graphene::app::login_api::network_node | ( | ) |
fc::api< orders_api > graphene::app::login_api::orders | ( | ) |