ledger-core
|
#include <BitcoinLikeAccount.hpp>
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< BitcoinLikeTransactionBuilder > | buildTransaction (std::experimental::optional< bool > partial)=0 |
virtual void | getFees (const std::shared_ptr< BigIntListCallback > &callback)=0 |
Class representing a Bitcoin account.
|
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 !
|
pure virtual |
Get UTXOs of account in a given range.
from,integer,lower | bound for account's UTXO's index |
to,integer,upper | bound for account's UTXO's index |
callback,ListCallback | object which returns a list of BitcoinLikeOutput if getUTXO succeed |
|
pure virtual |
Get UTXOs count of account.
callback,Callback | object which returns number of UTXO owned by this account |