wallet::CWallet::SubmitTxMemoryPoolAndRelay

Pass this transaction to node for optional mempool insertion and relay to peers.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7fbc76bfdab8), requires_capability(0x7fbc81b77478), requires_capability(0x7fbc7e0152f8), requires_capability(0x7fbc7e2447a8), requires_capability(0x7fbc8e7153e8)]]
bool
SubmitTxMemoryPoolAndRelay(
    CWalletTx& wtx,
    std::string& err_string,
    node::TxBroadcast broadcast_method) const;

Return Value

true if the transaction was accepted for broadcast.

Parameters

NameDescription
wtxThe wallet transaction to submit.
err_stringSet to an error message on failure.
broadcast_methodHow the transaction should be broadcast.