ledger-core
Public Member Functions | List of all members
ledger::core::api::BitcoinLikeAccount Class Referenceabstract

#include <BitcoinLikeAccount.hpp>

+ Inheritance diagram for ledger::core::api::BitcoinLikeAccount:

Public Member Functions

virtual void getUTXO (int32_t from, int32_t to, const std::shared_ptr< BitcoinLikeOutputListCallback > &callback)=0
 
virtual void getUTXOCount (const std::shared_ptr< I32Callback > &callback)=0
 
virtual void broadcastRawTransaction (const std::vector< uint8_t > &transaction, const std::shared_ptr< StringCallback > &callback)=0
 
virtual void broadcastTransaction (const std::shared_ptr< BitcoinLikeTransaction > &transaction, const std::shared_ptr< StringCallback > &callback)=0
 
virtual std::shared_ptr< BitcoinLikeTransactionBuilderbuildTransaction (std::experimental::optional< bool > partial)=0
 
virtual void getFees (const std::shared_ptr< BigIntListCallback > &callback)=0
 

Detailed Description

Class representing a Bitcoin account.

Member Function Documentation

◆ getFees()

virtual void ledger::core::api::BitcoinLikeAccount::getFees ( const std::shared_ptr< BigIntListCallback > &  callback)
pure virtual

Get fees from network, fees are ordered in descending order (i.e. fastest to slowest confirmation) Note: it would have been better to have this method on BitcoinLikeWallet but since BitcoinLikeWallet is not used anywhere, it's better to keep all specific methods under the same specific class so it will be easy to segratate when the right time comes !

◆ getUTXO()

virtual void ledger::core::api::BitcoinLikeAccount::getUTXO ( int32_t  from,
int32_t  to,
const std::shared_ptr< BitcoinLikeOutputListCallback > &  callback 
)
pure virtual

Get UTXOs of account in a given range.

Parameters
from,integer,lowerbound for account's UTXO's index
to,integer,upperbound for account's UTXO's index
callback,ListCallbackobject which returns a list of BitcoinLikeOutput if getUTXO succeed

◆ getUTXOCount()

virtual void ledger::core::api::BitcoinLikeAccount::getUTXOCount ( const std::shared_ptr< I32Callback > &  callback)
pure virtual

Get UTXOs count of account.

Parameters
callback,Callbackobject which returns number of UTXO owned by this account

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