based on transaction structure
https://en.bitcoin.it/wiki/Protocol_specificationThe TxOut structure consists of the following fields:
Field Size Description Data type Comments
8 value int64_t Transaction Value
1+ pk_script length var_int Length of the pk_script
? pk_script uchar[] Usually contains the public key as a Bitcoin script setting up conditions to claim this output
so maximum transaction value is
signed? 64-bit integer ?
why we use signed int? can transaction value be
negative?
then
if its uin64_t so then max value would be
2^64-1 = 18,446,744,073,709,551,615
there are max 21 million cap of bitcoin so
184467440.73709551615
21000000.00000000xxx
so we can add
3 more digits after satoshi unit?
if its int64_t then max value would be
2^63-1 = 9,223,372,036,854,775,807
92233720.36854775807
21000000.00000000xxx
still
more 3 digits after satoshi unit?