ledger-core
|
#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) | |
Block & | operator= (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 |
Structure of a block in the blockchain.
std::string ledger::core::api::Block::blockHash |
String, block's hash.
std::string ledger::core::api::Block::currencyName |
String, currency's name of blockchain the block belongs to.
int64_t ledger::core::api::Block::height |
64-bit integer, height of block in the blockchain.
std::chrono::system_clock::time_point ledger::core::api::Block::time |
Date on which block was mined.
std::string ledger::core::api::Block::uid |
String, id of block (usually height of block).