Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
graphene::app::block_api Class Reference

Block api. More...

#include <api.hpp>

Public Member Functions

 block_api (graphene::chain::database &db)
 
 ~block_api ()
 
vector< optional< signed_block > > get_blocks (uint32_t block_num_from, uint32_t block_num_to) const
 Get signed blocks. More...
 

Detailed Description

Block api.

Definition at line 225 of file api.hpp.

Constructor & Destructor Documentation

◆ block_api()

graphene::app::block_api::block_api ( graphene::chain::database db)

Definition at line 120 of file api.cpp.

◆ ~block_api()

graphene::app::block_api::~block_api ( )

Definition at line 121 of file api.cpp.

Member Function Documentation

◆ get_blocks()

vector< optional< signed_block > > graphene::app::block_api::get_blocks ( uint32_t  block_num_from,
uint32_t  block_num_to 
) const

Get signed blocks.

Parameters
block_num_fromThe lowest block number
block_num_toThe highest block number
Returns
A list of signed blocks from block_num_from till block_num_to

Definition at line 123 of file api.cpp.


The documentation for this class was generated from the following files: