Scorum
Functions
Accounts

Accounts. More...

Functions

std::vector< std::set< std::string > > scorum::app::database_api::get_key_references (std::vector< public_key_type > key) const
 
std::vector< extended_accountscorum::app::database_api::get_accounts (const std::vector< std::string > &names) const
 
std::vector< account_id_typescorum::app::database_api::get_account_references (account_id_type account_id) const
 
std::vector< optional< account_api_obj > > scorum::app::database_api::lookup_account_names (const std::vector< std::string > &account_names) const
 Get a list of accounts by name. More...
 
std::set< std::string > scorum::app::database_api::lookup_accounts (const std::string &lower_bound_name, uint32_t limit) const
 Get names and IDs for registered accounts. More...
 
uint64_t scorum::app::database_api::get_account_count () const
 Get the total number of accounts registered with the blockchain. More...
 
std::vector< owner_authority_history_api_objscorum::app::database_api::get_owner_history (const std::string &account) const
 
optional< account_recovery_request_api_objscorum::app::database_api::get_recovery_request (const std::string &account) const
 
optional< escrow_api_objscorum::app::database_api::get_escrow (const std::string &from, uint32_t escrow_id) const
 
std::vector< withdraw_routescorum::app::database_api::get_withdraw_routes (const std::string &account, withdraw_route_type type=outgoing) const
 
optional< account_bandwidth_api_objscorum::app::database_api::get_account_bandwidth (const std::string &account, witness::bandwidth_type type) const
 
std::vector< scorumpower_delegation_api_objscorum::app::database_api::get_scorumpower_delegations (const std::string &account, const std::string &from, uint32_t limit=100) const
 
std::vector< scorumpower_delegation_expiration_api_objscorum::app::database_api::get_expiring_scorumpower_delegations (const std::string &account, time_point_sec from, uint32_t limit=100) const
 

Detailed Description

Accounts.

Function Documentation

◆ get_account_bandwidth()

optional< account_bandwidth_api_obj > scorum::app::database_api::get_account_bandwidth ( const std::string &  account,
witness::bandwidth_type  type 
) const

Definition at line 549 of file database_api.cpp.

◆ get_account_count()

uint64_t scorum::app::database_api::get_account_count ( ) const

Get the total number of accounts registered with the blockchain.

Definition at line 438 of file database_api.cpp.

◆ get_account_references()

std::vector< account_id_type > scorum::app::database_api::get_account_references ( account_id_type  account_id) const
Returns
all accounts that refer to the key or account id in their owner or active authorities.

Definition at line 369 of file database_api.cpp.

◆ get_accounts()

std::vector< extended_account > scorum::app::database_api::get_accounts ( const std::vector< std::string > &  names) const

Definition at line 328 of file database_api.cpp.

◆ get_escrow()

optional< escrow_api_obj > scorum::app::database_api::get_escrow ( const std::string &  from,
uint32_t  escrow_id 
) const

Definition at line 481 of file database_api.cpp.

◆ get_expiring_scorumpower_delegations()

std::vector< scorumpower_delegation_expiration_api_obj > scorum::app::database_api::get_expiring_scorumpower_delegations ( const std::string &  account,
time_point_sec  from,
uint32_t  limit = 100 
) const

Definition at line 1048 of file database_api.cpp.

◆ get_key_references()

std::vector< std::set< std::string > > scorum::app::database_api::get_key_references ( std::vector< public_key_type key) const

Definition at line 305 of file database_api.cpp.

◆ get_owner_history()

std::vector< owner_authority_history_api_obj > scorum::app::database_api::get_owner_history ( const std::string &  account) const

Definition at line 448 of file database_api.cpp.

◆ get_recovery_request()

optional< account_recovery_request_api_obj > scorum::app::database_api::get_recovery_request ( const std::string &  account) const

Definition at line 466 of file database_api.cpp.

◆ get_scorumpower_delegations()

std::vector< scorumpower_delegation_api_obj > scorum::app::database_api::get_scorumpower_delegations ( const std::string &  account,
const std::string &  from,
uint32_t  limit = 100 
) const

Definition at line 1028 of file database_api.cpp.

◆ get_withdraw_routes()

std::vector< withdraw_route > scorum::app::database_api::get_withdraw_routes ( const std::string &  account,
withdraw_route_type  type = outgoing 
) const

Definition at line 498 of file database_api.cpp.

◆ lookup_account_names()

std::vector< optional< account_api_obj > > scorum::app::database_api::lookup_account_names ( const std::vector< std::string > &  account_names) const

Get a list of accounts by name.

Parameters
account_namesNames of the accounts to retrieve
Returns
The accounts holding the provided names

This function has semantics identical to get_objects

Definition at line 392 of file database_api.cpp.

◆ lookup_accounts()

std::set< std::string > scorum::app::database_api::lookup_accounts ( const std::string &  lower_bound_name,
uint32_t  limit 
) const

Get names and IDs for registered accounts.

Parameters
lower_bound_nameLower bound of the first name to return
limitMaximum number of results to return – must not exceed 1000
Returns
Map of account names to corresponding IDs

Definition at line 419 of file database_api.cpp.