CatapultServer
v0.5.0.1 (Elephant)
|
An api for retrieving chain information from a remote node. More...
Public Member Functions | |
virtual thread::future< std::shared_ptr< const model::Block > > | blockLast () const =0 |
Gets the last block. More... | |
virtual thread::future< std::shared_ptr< const model::Block > > | blockAt (Height height) const =0 |
Gets the block at height. More... | |
virtual thread::future< model::BlockRange > | blocksFrom (Height height, const BlocksFromOptions &options) const =0 |
Public Member Functions inherited from catapult::api::RemoteApi | |
virtual | ~RemoteApi ()=default |
const Key & | remotePublicKey () const |
Gets the remote node public key. More... | |
Public Member Functions inherited from catapult::api::ChainApi | |
virtual | ~ChainApi ()=default |
virtual thread::future< ChainInfo > | chainInfo () const =0 |
Gets information about the chain. More... | |
virtual thread::future< model::HashRange > | hashesFrom (Height height, uint32_t maxHashes) const =0 |
Gets at most maxHashes hashes starting at height. More... | |
Public Member Functions inherited from catapult::utils::NonCopyable | |
constexpr | NonCopyable ()=default |
Default constructor. More... | |
~NonCopyable ()=default | |
Default destructor. More... | |
NonCopyable (const NonCopyable &)=delete | |
Disabled copy constructor. More... | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Disabled assignment operator. More... | |
Protected Member Functions | |
RemoteChainApi (const Key &remotePublicKey) | |
Creates a remote api for the node with specified public key (remotePublicKey). More... | |
Protected Member Functions inherited from catapult::api::RemoteApi | |
RemoteApi (const Key &remotePublicKey) | |
Creates a remote api for the node with specified public key (remotePublicKey). More... | |
An api for retrieving chain information from a remote node.
|
inlineexplicitprotected |
Creates a remote api for the node with specified public key (remotePublicKey).
|
pure virtual |
Gets the block at height.
|
pure virtual |
Gets the last block.
|
pure virtual |
Gets the blocks starting at height with the specified options.