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

Function sendtomainchain

src/wallet/rpc/elements.cpp:778–785  ·  view source on GitHub ↗

We only expose the appropriate peg-out method type per network

Source from the content-addressed store, hash-verified

776
777// We only expose the appropriate peg-out method type per network
778RPCHelpMan sendtomainchain()
779{
780 if (Params().GetEnforcePak()) {
781 return sendtomainchain_pak();
782 } else {
783 return sendtomainchain_base();
784 }
785}
786
787extern UniValue signrawtransaction(const JSONRPCRequest& request);
788extern UniValue sendrawtransaction(const JSONRPCRequest& request);

Callers

nothing calls this directly

Calls 4

sendtomainchain_pakFunction · 0.85
sendtomainchain_baseFunction · 0.85
GetEnforcePakMethod · 0.80
ParamsClass · 0.50

Tested by

no test coverage detected