Skip to content

Added multi wallet support #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
85427c6
Added multi wallet support
bahadirbb Oct 1, 2018
0978e61
Merge branch 'master' of git://github.com/minium/bitcoin-api-cpp into…
bahadirbb Oct 2, 2018
14396f4
Merge branch 'minium-master'
bahadirbb Oct 2, 2018
7ff90c4
Added watchonly support to listsinceblock, added fee variable to tran…
bahadirbb Oct 11, 2018
7312bce
Added estimatesmartfee function
bahadirbb Oct 11, 2018
5181892
Initial functions for omni layer support
bahadirbb Oct 20, 2018
436a5db
Added initial omni layer functions
bahadirbb Oct 29, 2018
903c4dd
Added omni_send and omni_funded_sendall functions
bahadirbb Nov 3, 2018
deebe12
Fixed string to double conversions on omni calls
bahadirbb Nov 7, 2018
f756890
Added omni_funded_send command
bahadirbb Nov 9, 2018
da27281
Added omni_listpendingtransactions function, updated listunspent
bahadirbb Nov 20, 2018
e987ae8
Merge branch 'OMNI_SUPPORT'
bahadirbb Dec 21, 2018
716c51a
Added iswatchonly to validateaddress response
bahadirbb Jan 16, 2019
f5be950
Added omni_getwalletaddressbalances function
bahadirbb Jan 19, 2019
bf7fb0f
Merge branch 'OMNI_SUPPORT'
bahadirbb Jan 19, 2019
8d06585
Added getaddressinfo function
bahadirbb Jan 23, 2019
bb80e7d
Merge branch 'master' of https://github.com/bahadirbb/bitcoin-api-cpp
bahadirbb Jan 23, 2019
ddf4c55
Added omni_gettransaction method
bahadirbb Jan 26, 2019
8cabcdd
Updated omni_transaction struct
bahadirbb Feb 4, 2019
2fa4f7f
Used JsonValue references instead of copying
bahadirbb Feb 6, 2019
62eb42c
Removed unused variable
bahadirbb Feb 6, 2019
fa0248f
Fixed omni_listpendingtransactions deserialization bug
bahadirbb Feb 25, 2019
2273e60
Fixed omni_transaction parsing bug. added type checks
bahadirbb Feb 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added multi wallet support
  • Loading branch information
bahadirbb committed Oct 1, 2018
commit 85427c67f665e20b4ca329150f6d631d6c15e1cd
7 changes: 7 additions & 0 deletions src/bitcoinapi/bitcoinapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ BitcoinAPI::BitcoinAPI(const string& user, const string& password, const string&
httpClient->SetTimeout(httpTimeout);
}

BitcoinAPI::BitcoinAPI(const string& user, const string& password, const string& host, int port, const string& wallet, int httpTimeout)
: httpClient(new HttpClient("http://" + user + ":" + password + "@" + host + ":" + IntegerToString(port) + "/wallet/" + wallet)),
client(new Client(*httpClient, JSONRPC_CLIENT_V1))
{
httpClient->SetTimeout(httpTimeout);
}

BitcoinAPI::~BitcoinAPI()
{
delete client;
Expand Down
1 change: 1 addition & 0 deletions src/bitcoinapi/bitcoinapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class BitcoinAPI
public:
/* === Constructor and Destructor === */
BitcoinAPI(const std::string& user, const std::string& password, const std::string& host, int port, int httpTimeout);
BitcoinAPI(const std::string& user, const std::string& password, const std::string& host, int port, const std::string& wallet, int httpTimeout);
~BitcoinAPI();

/* === Auxiliary functions === */
Expand Down