Page MenuHomePhabricator

[Apps][Examples] Sending a one to many XEC tx
Changes PlannedPublic

Authored by emack on Oct 8 2023, 12:50.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

Demo showcasing an XEC tx with multiple recipients.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
oneToManyXecDemo
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25296
Build 50177: Build Diffapp-dev-examples
Build 50176: arc lint + arc unit

Event Timeline

emack requested review of this revision.Oct 8 2023, 12:50

Updated README, comments and removed redundant typecast.

not sure we really need this as a separate script and file

apps/examples/scripts/getUtxosFromAddress.js
41

seems like this is a bug fix unrelated to this diff

apps/examples/scripts/sendOneToManyXec.js
39

do we need a separate script for this function?

now that we are using coinSelect, should just work with both. the user is supplying the outputs either way.

sending to multiple outputs is not really a special type of tx. sending to a single output is just a special case where targetOutputs.length === 1

This revision now requires changes to proceed.Oct 10 2023, 12:29
emack planned changes to this revision.Oct 10 2023, 23:12