ledger-core
Public Member Functions | Public Attributes | List of all members
ledger::core::api::Block Struct Referencefinal

#include <Block.hpp>

Public Member Functions

 Block (std::string blockHash_, std::string uid_, std::chrono::system_clock::time_point time_, std::string currencyName_, int64_t height_)
 
 Block (const Block &cpy)
 
Blockoperator= (const Block &cpy)
 
template<class Archive >
void load (Archive &archive)
 
template<class Archive >
void save (Archive &archive) const
 

Public Attributes

std::string blockHash
 
std::string uid
 
std::chrono::system_clock::time_point time
 
std::string currencyName
 
int64_t height
 

Detailed Description

Structure of a block in the blockchain.

Member Data Documentation

◆ blockHash

std::string ledger::core::api::Block::blockHash

String, block's hash.

◆ currencyName

std::string ledger::core::api::Block::currencyName

String, currency's name of blockchain the block belongs to.

◆ height

int64_t ledger::core::api::Block::height

64-bit integer, height of block in the blockchain.

◆ time

std::chrono::system_clock::time_point ledger::core::api::Block::time

Date on which block was mined.

◆ uid

std::string ledger::core::api::Block::uid

String, id of block (usually height of block).


The documentation for this struct was generated from the following file: