Bitcoin Forum
September 13, 2025, 02:55:40 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a limit on the max number of inputs and outputs in a transaction?  (Read 2241 times)
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1184


Gerald Davis


View Profile
July 02, 2013, 08:20:35 AM
 #1

Title says it all....

Is there a limit on the max number of inputs and outputs in a transaction?
rme
Hero Member
*****
Offline Offline

Activity: 756
Merit: 504



View Profile
July 02, 2013, 08:21:27 AM
 #2

Yes, currently one transaction cannot be more than 1MB.
Thats the limit.  Wink
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1184


Gerald Davis


View Profile
July 02, 2013, 08:55:48 AM
 #3

Gotcha.  Also remember since 0.8.2 any tx over 100KB is non-standard but other than total tx size limit there is no restriction on the # of inputs or outputs.

Given an input is ~150 bytes a say 400 input tx and it would still be valid and standard if total tx size is under 100KB.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1028



View Profile
July 02, 2013, 12:15:46 PM
 #4

There is also a far less practical limit.  The number of items in the input and output lists are specified using varint values, which max out at 264-1.

It is obviously difficult to imagine situations where that limit will matter, but it is the only limit that applies directly.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1184


Gerald Davis


View Profile
July 02, 2013, 03:54:08 PM
 #5

There is also a far less practical limit.  The number of items in the input and output lists are specified using varint values, which max out at 264-1.

It is obviously difficult to imagine situations where that limit will matter, but it is the only limit that applies directly.

Ah good point although I agree it is unlikely that limit will be a practical one.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!