28 #include <iota/api/core.hpp> 29 #include <iota/models/fwd.hpp> 30 #include <iota/utils/stop_watch.hpp> 51 Extended(
const std::string& host,
const uint16_t& port,
bool localPow =
true,
int timeout = 60);
71 const int32_t& end = 0,
72 const int64_t& threshold = 0)
const;
85 const std::vector<Models::Address>& addresses,
const int64_t& threshold = 0)
const;
102 const int32_t& total = 0,
103 bool returnAll =
false)
const;
125 std::vector<Models::Bundle>
traverseBundles(
const std::vector<Types::Trytes>& trunkTrxs,
126 bool throwOnFail =
true)
const;
146 bool withInclusionStates =
false)
const;
156 const std::vector<Models::Address>& addresses)
const;
167 const std::vector<IOTA::Types::Trytes>& trx_hashes)
const;
177 const std::vector<IOTA::Types::Trytes>& input)
const;
203 const std::vector<Models::Transfer>& transfers,
205 const std::vector<Models::Address>& inputs = {},
206 bool validateInputs =
true)
const;
233 bool inclusionStates =
false)
const;
253 std::vector<Models::Transfer>& transfers,
254 const std::vector<Models::Address>& inputs = {},
256 const Types::Trytes& reference =
"")
const;
269 std::vector<Models::Transaction>
sendTrytes(
const std::vector<Types::Trytes>& trytes,
270 const unsigned int& depth,
271 const unsigned int& minWeightMagnitude,
272 const Types::Trytes& reference =
"")
const;
291 const std::vector<Models::Address>& addresses)
const;
310 const std::vector<Types::Trytes>& approvees)
const;
320 const std::vector<Types::Trytes>& bundles)
const;
335 bool inclusionStates =
true,
long threshold = 0)
const;
353 const std::vector<Types::Trytes>& signatureFragments = {})
const;
365 int minWeightMagnitude)
const;
380 const std::vector<Models::Transfer>& transfers)
const;
406 int minWeightMagnitude,
407 std::vector<Models::Transfer>& transfers,
int delay,
408 const std::function<
bool()>& interrupt)
const;
417 std::vector<bool>
isReattachable(
const std::vector<Models::Address>& addresses);
421 const std::vector<std::reference_wrapper<Models::Bundle>>& bundles,
422 bool throwOnFail)
const;
427 static bool isTransfersCollectionValid(
const std::vector<Models::Transfer>& transfers);
std::vector< Models::Transaction > getTransactionsObjects(const std::vector< IOTA::Types::Trytes > &trx_hashes) const
Definition: get_bundle.hpp:44
Definition: extended.hpp:41
Definition: send_transfer.hpp:42
Definition: get_account_data.hpp:45
Responses::GetBalancesAndFormat getBalancesAndFormat(const std::vector< Models::Address > &addresses, const int64_t &threshold=0) const
Definition: get_new_addresses.hpp:44
Responses::GetBalancesAndFormat getInputs(const Models::Seed &seed, const int32_t &start=0, const int32_t &end=0, const int64_t &threshold=0) const
std::vector< Models::Transaction > sendTrytes(const std::vector< Types::Trytes > &trytes, const unsigned int &depth, const unsigned int &minWeightMagnitude, const Types::Trytes &reference="") const
Definition: address.hpp:43
Responses::ReplayBundle replayBundle(const Types::Trytes &transaction, int depth, int minWeightMagnitude) const
Responses::SendTransfer sendTransfer(const Models::Seed &seed, int depth, int minWeightMagnitude, std::vector< Models::Transfer > &transfers, const std::vector< Models::Address > &inputs={}, const Models::Address &remainder={}, const Types::Trytes &reference="") const
Definition: find_transactions.hpp:47
Models::Bundle traverseBundle(const Types::Trytes &trunkTx) const
Responses::FindTransactions findTransactionsByApprovees(const std::vector< Types::Trytes > &approvees) const
Definition: replay_bundle.hpp:41
bool isPromotable(const Types::Trytes &tail) const
std::vector< Models::Transaction > findTransactionObjectsByBundle(const std::vector< IOTA::Types::Trytes > &input) const
Responses::GetBundle getBundle(const Types::Trytes &transaction) const
Responses::Base broadcastAndStore(const std::vector< Types::Trytes > &trytes) const
std::vector< Types::Trytes > prepareTransfers(const Models::Seed &seed, const std::vector< Models::Transfer > &transfers, const Models::Address &remainder={}, const std::vector< Models::Address > &inputs={}, bool validateInputs=true) const
virtual ~Extended()=default
std::vector< Models::Bundle > traverseBundles(const std::vector< Types::Trytes > &trunkTrxs, bool throwOnFail=true) const
Definition: get_transfers.hpp:43
Extended(const std::string &host, const uint16_t &port, bool localPow=true, int timeout=60)
Definition: bundle.hpp:42
std::vector< Models::Transaction > findTransactionObjects(const std::vector< Models::Address > &addresses) const
Responses::FindTransactions findTransactionsByTags(const std::vector< Models::Tag > &tags) const
std::vector< Types::Trytes > addRemainder(const Models::Seed &seed, const std::vector< Models::Address > &inputs, Models::Bundle &bundle, const Models::Tag &tag, int64_t totalValue, const Models::Address &remainderAddress, const std::vector< Types::Trytes > &signatureFragments={}) const
Responses::FindTransactions findTransactionsByAddresses(const std::vector< Models::Address > &addresses) const
Responses::GetAccountData getAccountData(const Models::Seed &seed, int start=0, int end=0, bool inclusionStates=true, long threshold=0) const
static void verifyBundle(const Models::Bundle &bundle)
Responses::SendTransfer promoteTransaction(const Types::Trytes &tail, int depth, int minWeightMagnitude, std::vector< Models::Transfer > &transfers, int delay, const std::function< bool()> &interrupt) const
std::vector< bool > isReattachable(const std::vector< Models::Address > &addresses)
Responses::GetTransfers getTransfers(const Models::Seed &seed, int start=0, int end=0, bool inclusionStates=false) const
Responses::GetInclusionStates getLatestInclusion(const std::vector< Types::Trytes > &hashes) const
std::vector< Models::Bundle > bundlesFromAddresses(const std::vector< Models::Address > &addresses, bool withInclusionStates=false) const
std::vector< Models::Transaction > initiateTransfer(const Models::Address &inputAddress, const Models::Address &remainderAddress, const std::vector< Models::Transfer > &transfers) const
Definition: get_inclusion_states.hpp:48
Responses::GetNewAddresses getNewAddresses(const Models::Seed &seed, const uint32_t &index=0, const int32_t &total=0, bool returnAll=false) const
Responses::FindTransactions findTransactionsByBundles(const std::vector< Types::Trytes > &bundles) const