BitShares-Core  6.1.0
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 (const graphene::chain::database &db)
 
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 309 of file api.hpp.

Constructor & Destructor Documentation

◆ block_api()

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

Definition at line 122 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 124 of file api.cpp.


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