bitcoin core – Validate raw transaction hex without broadcasting


I would like to check the validity of a raw transaction (i.e. whether it would be accepted by network nodes), without broadcasting the transaction to the network. I am interested in knowing what is the best way to achieve this 1) using Bitcoin Core’s RPC API 2) by any other means (e.g. open source tool).

Am I correct in stating that the sendrawtransaction RPC method first validates a transaction before attempting to broadcast the transaction to the network?

Edit – I’m aware that the decoderawtransaction method can be used to manually/visually assess the details of a transaction, but I’d like to be 100% sure that the transaction signatures and parameters are correct without having to actually broadcast the transaction.

Source link

Leave a reply