How to create a transaction without broadcasting I would like the create a transaction without broadcasting it to the network.
testmempoolaccept is a RPC which lets you dry-run submitting a transaction like sendrawtransaction, without actually pushing the transaction into your mempool or to the p2p network. Both function identically other than the final operation of broadcasting, so error messages can be considered equal.