HomePhabricator

[Cashtab] Minimize fees for NFT listing txs

Description

[Cashtab] Minimize fees for NFT listing txs

Summary:
Cashtab currently requires a user balance of 3000 satoshis to list an NFT. This is bc the way Cashtab build's NFT listing txs -- which require a special "ad prep" tx -- was not fully developed.

Minimize the size of the double tx by ensuring the 2nd tx always has one input. Calculate the required fee of the 2nd tx (the offer tx) so that the 1st tx (the "ad prep" tx) can create an output that is exactly big enough to cover the offer tx with no change.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Oct 7 2024, 23:54
bytesofmanPushed on Oct 8 2024, 13:39
Reviewer
Restricted Project
Differential Revision
D16864: [Cashtab] Minimize fees for NFT listing txs
Parents
rABC43f19a37b28f: [herald] Show invalidated blocks
Branches
Unknown
Tags
Unknown