Rebuilding Transaction
Rebuilding a transaction starts from obtaining the TxBuilderBody
, which can be obtained by either of the methods from TxParser
:
get_builder_body
- get the entireTxBuilderBody
of the current transaction parsedget_builder_body_without_change
- get theTxBuilderBody
without the last outputThis is the recommended method for rebuilding the transaction since the
complete
method ofTxBuilder
would re-calculate the change as per the manipulation. Thus, the rebuilt transaction will be in an expected shape without one extra output.
Full Example
Last updated