HomePhabricator

[Cashtab] [Chronik] [Tx Gen] Sign and build Tx

Description

[Cashtab] [Chronik] [Tx Gen] Sign and build Tx

Summary:
As per T2503, this is part of a series of diffs to refactor the transaction generation process within useBCH.

This diff is a standalone utility function which signs the input UTXOs and converts the transaction builder instance into a raw tx hex ready for broadcast to a node.

This function returns a hex string.

Test Plan:
npm test
observe successful execution of signAndBuildTx() unit tests

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D11710

Details

Provenance
emackAuthored on Jul 5 2022, 05:12
emackPushed on Jul 13 2022, 14:35
Reviewer
Restricted Project
Differential Revision
D11710: [Cashtab] [Chronik] [Tx Gen] Sign and build Tx
Parents
rABCc416c48044ef: use existing chainstate reference in various places
Branches
Unknown
Tags
Unknown