Page MenuHomePhabricator

[ecash-lib] Export Tx.toHex()
ClosedPublic

Authored by Fabien on Jul 21 2025, 21:24.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC2961fa6a395e: [ecash-lib] Export Tx.toHex()
Summary

This is just a convenience function that makes it possible to get the serialized hex of a tx using ecash-wallet without explicitely requiring the toHex function from ecash-lib.

Depends on D18394.

Test Plan
npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jul 21 2025, 21:24
bytesofman added a subscriber: bytesofman.

nice. I use toHex(someBuiltTx.ser()) all the time, this is great

esp for unit tests, it is easier to store rawTxs as hex strings, easier to configure mock-chronik-client with hex strings.

This revision is now accepted and ready to land.Jul 22 2025, 10:33
This revision was automatically updated to reflect the committed changes.