Bitcoin-ABC / bitcoin-abc

Bitcoin ABC develops node software and infrastructure for the eCash project. This a mirror of the official Bitcoin-ABC repository. Please see README.md
https://reviews.bitcoinabc.org
MIT License
1.25k stars 793 forks source link

how to estimate transaction size by input and output? #310

Open purplecity opened 5 years ago

purplecity commented 5 years ago

construct a transacton,then how to estimate transaction size by input and output?

purplecity commented 5 years ago

at bitcoin . estimate transaction size is : in180 + out34 + 10. if bchabc follow this?

markblundeberg commented 5 years ago

For typical P2PKH transactions with compressed public keys and ECDSA signatures: 148in + 34out + 10.

(180in for uncompressed public keys)