An example using the bitgo transaction builder to:
- collate XEC input UTXOs (filtering out eToken UTXOs)
- generate tx outputs
- sign the individual UTXOs
- build the transaction into raw hex
- broadcast the raw hex via chronik onto the network
Differential D14198
[Apps][Examples] Sending XECs emack on Jul 3 2023, 14:27. Authored by
Details
An example using the bitgo transaction builder to:
npm test
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes
Comment Actions updated per various feedback, added unit test for an XEC amount equal to current circulating supply and updated example to use 1 sat / byte for tx fee calculation
Comment Actions Updated comments and variables as per feedback, added two unit tests for greater than circulating supply and with decimal points Comment Actions I think this example demonstrates that we are missing a higher level API to interact with the network. Even without looking at the code, this is an example for sending an XEC tx, assuming you already have some wallet object at hand, and still it takes >300 lines of code to achieve that.
Comment Actions
Comment Actions Responding to feedback
Comment Actions Responding to feedback
|