Committing updates.
This commit is contained in:
@@ -245,15 +245,16 @@ namespace Apostol {
|
||||
std::string script_to_address(const std::string &script, uint8_t version = payment_address::mainnet_p2sh);
|
||||
//--------------------------------------------------------------------------------------------------------------
|
||||
#ifdef WITH_BITCOIN_CLIENT
|
||||
uint64_t fetch_balance(const wallet::payment_address &address);
|
||||
void fetch_balance(const wallet::payment_address &address, client::proxy::history_handler on_reply,
|
||||
client::proxy::error_handler on_error, uint16_t timeout = 10);
|
||||
//--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
void fetch_history(const wallet::payment_address &address, CJSON& Result);
|
||||
void fetch_header(uint32_t height, CJSON& Result);
|
||||
void fetch_header(const hash_digest& hash, CJSON& Result);
|
||||
void fetch_history(const wallet::payment_address &address, CJSON& Result, uint16_t timeout = 10);
|
||||
void fetch_header(uint32_t height, CJSON& Result, uint16_t timeout = 10);
|
||||
void fetch_header(const hash_digest& hash, CJSON& Result, uint16_t timeout = 10);
|
||||
|
||||
void send_tx(const chain::transaction& tx, CJSON& Result);
|
||||
void send_tx(const std::string& hex, CJSON& Result);
|
||||
void send_tx(const chain::transaction& tx, CJSON& Result, uint16_t timeout = 10);
|
||||
void send_tx(const std::string& hex, CJSON& Result, uint16_t timeout = 10);
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -358,6 +359,7 @@ namespace Apostol {
|
||||
const chain::script& embedded() const {return m_embedded; };
|
||||
|
||||
payment_address to_address(uint8_t version = payment_address::mainnet_p2sh) const;
|
||||
std::string to_witness(const std::string &hrp = "bc") const;
|
||||
|
||||
const std::vector<ec_private> &secrets() const { return m_secrets; };
|
||||
const std::vector<ec_public> &keys() const { return m_keys; };
|
||||
|
||||
Reference in New Issue
Block a user