Scorum
|
Provide set of getters to retrive information about blocks, transactions and operations. More...
Public API | |
std::map< uint32_t, applied_operation > | scorum::blockchain_history::blockchain_history_api::get_ops_history (uint32_t from_op, uint32_t limit, applied_operation_type type_of_operation) const |
This method returns all operations in ids range [from-limit, from]. More... | |
std::map< uint32_t, applied_operation > | scorum::blockchain_history::blockchain_history_api::get_ops_history_by_time (const fc::time_point_sec &from, const fc::time_point_sec &to, uint32_t from_op, uint32_t limit) const |
This method returns all operations in timestamp range [from, to]. More... | |
std::map< uint32_t, applied_operation > | scorum::blockchain_history::blockchain_history_api::get_ops_in_block (uint32_t block_num, applied_operation_type type_of_operation) const |
Returns sequence of operations included/generated in a specified block. More... | |
annotated_signed_transaction | scorum::blockchain_history::blockchain_history_api::get_transaction (transaction_id_type trx_id) const |
This method returns signed transaction by transaction id. More... | |
optional< block_header > | scorum::blockchain_history::blockchain_history_api::get_block_header (uint32_t block_num) const |
Retrieve a block header. More... | |
std::map< uint32_t, block_header > | scorum::blockchain_history::blockchain_history_api::get_block_headers_history (uint32_t block_num, uint32_t limit) const |
Retrieve the list of block headers in range [from-limit, from]. More... | |
optional< signed_block_api_obj > | scorum::blockchain_history::blockchain_history_api::get_block (uint32_t block_num) const |
Retrieve a full, signed block. More... | |
std::map< uint32_t, signed_block_api_obj > | scorum::blockchain_history::blockchain_history_api::get_blocks_history (uint32_t block_num, uint32_t limit) const |
Retrieve the list of signed block from block log (irreversible blocks) in range [from-limit, from]. More... | |
std::vector< block_api_object > | scorum::blockchain_history::blockchain_history_api::get_blocks (uint32_t from, uint32_t limit) const |
Retrieve the list of blocks from block log in range [from-limit, from]. More... | |
Provide set of getters to retrive information about blocks, transactions and operations.
Require: blockchain_history_plugin
optional< signed_block_api_obj > scorum::blockchain_history::blockchain_history_api::get_block | ( | uint32_t | block_num | ) | const |
Retrieve a full, signed block.
block_num | Height of the block to be returned |
Definition at line 352 of file blockchain_history_api.cpp.
optional< block_header > scorum::blockchain_history::blockchain_history_api::get_block_header | ( | uint32_t | block_num | ) | const |
Retrieve a block header.
block_num | Height of the block whose header should be returned |
Definition at line 347 of file blockchain_history_api.cpp.
std::map< uint32_t, block_header > scorum::blockchain_history::blockchain_history_api::get_block_headers_history | ( | uint32_t | block_num, |
uint32_t | limit | ||
) | const |
Retrieve the list of block headers in range [from-limit, from].
block_num | Height of the block to be returned |
limit | the maximum number of blocks that can be queried (0 to 100], must be less than from |
Definition at line 357 of file blockchain_history_api.cpp.
std::vector< block_api_object > scorum::blockchain_history::blockchain_history_api::get_blocks | ( | uint32_t | from, |
uint32_t | limit | ||
) | const |
Retrieve the list of blocks from block log in range [from-limit, from].
from | Height of the block to be returned |
limit | the maximum number of blocks that can be queried (0 to 100], must be less than from |
Definition at line 373 of file blockchain_history_api.cpp.
std::map< uint32_t, signed_block_api_obj > scorum::blockchain_history::blockchain_history_api::get_blocks_history | ( | uint32_t | block_num, |
uint32_t | limit | ||
) | const |
Retrieve the list of signed block from block log (irreversible blocks) in range [from-limit, from].
block_num | Height of the block to be returned |
limit | the maximum number of blocks that can be queried (0 to 100], must be less than from |
Definition at line 365 of file blockchain_history_api.cpp.
std::map< uint32_t, applied_operation > scorum::blockchain_history::blockchain_history_api::get_ops_history | ( | uint32_t | from_op, |
uint32_t | limit, | ||
applied_operation_type | type_of_operation | ||
) | const |
This method returns all operations in ids range [from-limit, from].
from_op | - the operation 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 100], must be less than from |
type_of_operation | Operations type (all = 0, not_virt = 1, virt = 2, market = 3) |
Definition at line 291 of file blockchain_history_api.cpp.
std::map< uint32_t, applied_operation > scorum::blockchain_history::blockchain_history_api::get_ops_history_by_time | ( | const fc::time_point_sec & | from, |
const fc::time_point_sec & | to, | ||
uint32_t | from_op, | ||
uint32_t | limit | ||
) | const |
This method returns all operations in timestamp range [from, to].
from | - the time from start searching operations |
to | - the time until end searching operations |
from_op | - the operation 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 100], must be less than from |
Definition at line 310 of file blockchain_history_api.cpp.
std::map< uint32_t, applied_operation > scorum::blockchain_history::blockchain_history_api::get_ops_in_block | ( | uint32_t | block_num, |
applied_operation_type | type_of_operation | ||
) | const |
Returns sequence of operations included/generated in a specified block.
block_num | Block height of specified block |
type_of_operation | Operations type (all = 0, not_virt = 1, virt = 2, market = 3) |
Definition at line 320 of file blockchain_history_api.cpp.
annotated_signed_transaction scorum::blockchain_history::blockchain_history_api::get_transaction | ( | transaction_id_type | trx_id | ) | const |
This method returns signed transaction by transaction id.
trx_id | transaction id |
Definition at line 338 of file blockchain_history_api.cpp.