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

Method getUnspentOutput

src/node/interfaces.cpp:274–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 void rpcSetTimerInterfaceIfUnset(RPCTimerInterface* iface) override { RPCSetTimerInterfaceIfUnset(iface); }
273 void rpcUnsetTimerInterface(RPCTimerInterface* iface) override { RPCUnsetTimerInterface(iface); }
274 bool getUnspentOutput(const COutPoint& output, Coin& coin) override
275 {
276 LOCK(::cs_main);
277 return chainman().ActiveChainstate().CoinsTip().GetCoin(output, coin);
278 }
279 TransactionError broadcastTransaction(CTransactionRef tx, CAmount max_tx_fee, std::string& err_string) override
280 {
281 return BroadcastTransaction(*m_context, std::move(tx), err_string, max_tx_fee, /*relay=*/ true, /*wait_callback=*/ false);

Callers 1

toHTMLMethod · 0.80

Calls 1

GetCoinMethod · 0.45

Tested by

no test coverage detected