MCPcopy Create free account
hub / github.com/ElementsProject/elements / createTransaction

Method createTransaction

src/wallet/interfaces.cpp:253–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 return m_wallet->ListLockedCoins(outputs);
252 }
253 CTransactionRef createTransaction(const std::vector<CRecipient>& recipients,
254 const CCoinControl& coin_control,
255 bool sign,
256 int& change_pos,
257 CAmount& fee,
258 BlindDetails* blind_details,
259 bilingual_str& fail_reason) override
260 {
261 LOCK(m_wallet->cs_wallet);
262 CTransactionRef tx;
263 FeeCalculation fee_calc_out;
264 if (!CreateTransaction(*m_wallet, recipients, tx, fee, change_pos,
265 fail_reason, coin_control, fee_calc_out, sign, blind_details)) {
266 return {};
267 }
268 return tx;
269 }
270 void commitTransaction(CTransactionRef tx,
271 WalletValueMap value_map,
272 WalletOrderForm order_form,

Callers 1

prepareTransactionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected