Scorum
Functions
Blockchain history

Wallet Blockchain history API. More...

Functions

optional< block_headerscorum::wallet::wallet_api::get_block_header (uint32_t num) const
 
optional< signed_block_api_objscorum::wallet::wallet_api::get_block (uint32_t num) const
 
std::map< uint32_t, block_headerscorum::wallet::wallet_api::get_block_headers_history (uint32_t num, uint32_t limit) const
 
std::map< uint32_t, signed_block_api_objscorum::wallet::wallet_api::get_blocks_history (uint32_t num, uint32_t limit) const
 
std::map< uint32_t, applied_operationscorum::wallet::wallet_api::get_ops_in_block (uint32_t block_num, applied_operation_type type_of_operation) const
 
std::map< uint32_t, applied_operationscorum::wallet::wallet_api::get_ops_history (uint32_t from_op, uint32_t limit, applied_operation_type type_of_operation) const
 
std::map< uint32_t, applied_operationscorum::wallet::wallet_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
 
std::vector< block_api_objectscorum::wallet::wallet_api::get_blocks (uint32_t from, uint32_t limit) const
 

Detailed Description

Wallet Blockchain history API.

Function Documentation

◆ get_block()

optional< signed_block_api_obj > scorum::wallet::wallet_api::get_block ( uint32_t  num) const

Returns the information about a block

Parameters
numBlock num
Returns
Public block data on the blockchain

Definition at line 1059 of file wallet.cpp.

◆ get_block_header()

optional< block_header > scorum::wallet::wallet_api::get_block_header ( uint32_t  num) const

Returns the information about a block header

Parameters
numBlock num
Returns
Header block data on the blockchain

Definition at line 1052 of file wallet.cpp.

◆ get_block_headers_history()

std::map< uint32_t, block_header > scorum::wallet::wallet_api::get_block_headers_history ( uint32_t  num,
uint32_t  limit 
) const

Returns information about the block headers in range [from-limit, from]

Parameters
numBlock num, -1 means most recent, limit is the number of blocks before from.
limitthe maximum number of items that can be queried (0 to 100], must be less than from
Returns
map of block headers

Definition at line 1066 of file wallet.cpp.

◆ get_blocks()

std::vector< block_api_object > scorum::wallet::wallet_api::get_blocks ( uint32_t  from,
uint32_t  limit 
) const

Retrieve the list of blocks from block log in range [from-limit, from]

Parameters
fromHeight of the block to be returned
limitthe maximum number of blocks that can be queried (0 to 100], must be less than from
Returns
the list of signed blocks

Definition at line 1106 of file wallet.cpp.

◆ get_blocks_history()

std::map< uint32_t, signed_block_api_obj > scorum::wallet::wallet_api::get_blocks_history ( uint32_t  num,
uint32_t  limit 
) const

Returns information about the blocks in range [from-limit, from]

Parameters
numBlock num, -1 means most recent, limit is the number of blocks before from.
limitthe maximum number of items that can be queried (0 to 100], must be less than from
Returns
map of blocks

Definition at line 1073 of file wallet.cpp.

◆ get_ops_history()

std::map< uint32_t, applied_operation > scorum::wallet::wallet_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]

Parameters
from_opthe operation number, -1 means most recent, limit is the number of operations before from.
limitthe maximum number of items that can be queried (0 to 100], must be less than from
type_of_operationOperations type (all = 0, not_virt = 1, virt = 2, market = 3)
Returns
map of applied operations

Definition at line 1089 of file wallet.cpp.

◆ get_ops_history_by_time()

std::map< uint32_t, applied_operation > scorum::wallet::wallet_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] by pages [from_op-limit, from_op]

Parameters
fromthe time from start searching operations
tothe time until end searching operations
from_opthe operation number, -1 means most recent, limit is the number of operations before from.
limitthe maximum number of items that can be queried (0 to 100], must be less than from
Returns
map of applied operations

Definition at line 1096 of file wallet.cpp.

◆ get_ops_in_block()

std::map< uint32_t, applied_operation > scorum::wallet::wallet_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

Parameters
block_numBlock height of specified block
type_of_operationOperations type (all = 0, not_virt = 1, virt = 2, market = 3)
Returns
map of applied operations

Definition at line 1080 of file wallet.cpp.