Scorum
Account history API

Allows quick search of applied operations. More...

Public API

std::map< uint32_t, applied_operationscorum::blockchain_history::account_history_api::get_account_history (const std::string &account, uint64_t from, uint32_t limit) const
 
std::map< uint32_t, applied_operationscorum::blockchain_history::account_history_api::get_account_scr_to_scr_transfers (const std::string &account, uint64_t from, uint32_t limit) const
 
std::map< uint32_t, applied_operationscorum::blockchain_history::account_history_api::get_account_scr_to_sp_transfers (const std::string &account, uint64_t from, uint32_t limit) const
 
std::map< uint32_t, applied_withdraw_operationscorum::blockchain_history::account_history_api::get_account_sp_to_scr_transfers (const std::string &account, uint64_t from, uint32_t limit) const
 

Detailed Description

Allows quick search of applied operations.

Require: blockchain_history_plugin

Function Documentation

◆ get_account_history()

std::map< uint32_t, applied_operation > scorum::blockchain_history::account_history_api::get_account_history ( const std::string &  account,
uint64_t  from,
uint32_t  limit 
) const

Account operations have sequence numbers from 0 to N where N is the most recent operation. This method returns operations in the range [from-limit, from]

Parameters
account- account whose history we are getting
from- the absolute sequence number, -1 means most recent, limit is the number of operations before from.
limit- the maximum number of items that can be queried (0 to MAX_BLOCKCHAIN_HISTORY_DEPTH], must be less than from

Definition at line 101 of file account_history_api.cpp.

◆ get_account_scr_to_scr_transfers()

std::map< uint32_t, applied_operation > scorum::blockchain_history::account_history_api::get_account_scr_to_scr_transfers ( const std::string &  account,
uint64_t  from,
uint32_t  limit 
) const

Definition at line 85 of file account_history_api.cpp.

◆ get_account_scr_to_sp_transfers()

std::map< uint32_t, applied_operation > scorum::blockchain_history::account_history_api::get_account_scr_to_sp_transfers ( const std::string &  account,
uint64_t  from,
uint32_t  limit 
) const

Definition at line 93 of file account_history_api.cpp.

◆ get_account_sp_to_scr_transfers()

std::map< uint32_t, applied_withdraw_operation > scorum::blockchain_history::account_history_api::get_account_sp_to_scr_transfers ( const std::string &  account,
uint64_t  from,
uint32_t  limit 
) const

Definition at line 108 of file account_history_api.cpp.