HomePhabricator

[Apps][Examples] Sending XECs

Description

[Apps][Examples] Sending XECs

Summary:
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

Test Plan:
npm test
pre-fund an existing wallet and copy wallet address and mnemonic into sendXec.js
npm run sendXec <destinationAddress> <sendXecAmount>

Reviewers: bytesofman, #bitcoin_abc, Fabien

Reviewed By: bytesofman, #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
emackAuthored on Jul 3 2023, 14:23
emackPushed on Aug 11 2023, 14:33
Reviewer
Restricted Project
Differential Revision
D14198: [Apps][Examples] Sending XECs
Parents
rABC97db681ba6c1: [Cashtab] Move settings validation and supported fiat currency list out of…
Branches
Unknown
Tags
Unknown