Import transaction

This commit is contained in:
tobtoht
2020-11-10 12:38:37 +01:00
parent 24133ac390
commit 046b2cfc4c
12 changed files with 308 additions and 3 deletions
+3 -1
View File
@@ -13,7 +13,8 @@ class DaemonRpc : public QObject {
public:
enum Endpoint {
SEND_RAW_TRANSACTION = 0
SEND_RAW_TRANSACTION = 0,
GET_TRANSACTIONS
};
struct DaemonResponse {
@@ -29,6 +30,7 @@ public:
explicit DaemonRpc(QObject *parent, UtilsNetworking *network, QString daemonAddress);
void sendRawTransaction(const QString &tx_as_hex, bool do_not_relay = false, bool do_sanity_checks = true);
void getTransactions(const QStringList &txs_hashes, bool decode_as_json = false, bool prune = false);
void setDaemonAddress(const QString &daemonAddress);
void setNetwork(UtilsNetworking *network);