Bitcoin Forum
September 27, 2018, 11:25:42 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: max recipients per transaction?  (Read 733 times)
icanscript
Hero Member
*****
Offline Offline

Activity: 700
Merit: 502



View Profile
May 15, 2015, 12:32:07 PM
 #1

A client wants me to use the sendmany RPC Command.

I am wondering how many recipients there can be in a transaction, or what would be a 'good' number to start splitting transactions up.

Thanks for any help.
1538090742
Hero Member
*
Offline Offline

Posts: 1538090742

View Profile Personal Message (Offline)

Ignore
1538090742
Reply with quote  #2

1538090742
Report to moderator
1538090742
Hero Member
*
Offline Offline

Posts: 1538090742

View Profile Personal Message (Offline)

Ignore
1538090742
Reply with quote  #2

1538090742
Report to moderator
1538090742
Hero Member
*
Offline Offline

Posts: 1538090742

View Profile Personal Message (Offline)

Ignore
1538090742
Reply with quote  #2

1538090742
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538090742
Hero Member
*
Offline Offline

Posts: 1538090742

View Profile Personal Message (Offline)

Ignore
1538090742
Reply with quote  #2

1538090742
Report to moderator
qwk
Donator
Legendary
*
Offline Offline

Activity: 1904
Merit: 1384



View Profile
May 15, 2015, 12:43:33 PM
 #2

I am wondering how many recipients there can be in a transaction, or what would be a 'good' number to start splitting transactions up.

The total size of the transaction must be less than 100,000 bytes or it will not be relayed across the network or included in blocks.

There COULD be a miner that is mining >100K transactions, but I don't think there is; if there is such a miner or you mine the transaction yourself then the limit would be the 1,000,000 byte blocksize limit.

You would probably want to create much smaller transactions than max block size, though Wink

Yeah, well... I'm gonna go build my own blockchain, with blackjack and hookers. In fact, forget the blockchain!
cakir
Legendary
*
Offline Offline

Activity: 1274
Merit: 1000


★ BitClave ICO: 15/09/17 ★


View Profile WWW
May 15, 2015, 12:54:30 PM
 #3

If you check the tx's from qt it shows you something like that;
"txid-000" that means first output's id is 0,
if you send to two different address then second one will look like "txid-001"
Theorically you can send 1000 different addresses. (don't forget there'll be a change address so it's 999)

Also 1 block's max size is 1 MB so your tx should be under that. In general 1 tx is 226 byte, if you send to 1000 different addresses; it'll be around 226 kb.
 


                  ,'#██+:                 
              ,█████████████'             
            +██████████████████           
          ;██████████████████████         
         ███████:         .███████`       
        ██████               ;█████'      
      `█████                   #████#     
      ████+                     `████+    
     ████:                        ████,   
    ████:    .#              █     ████   
   ;███+     ██             ███     ████  
   ████     ███'            ███.    '███, 
  +███     #████           ,████     ████ 
  ████     █████ .+██████: █████+    `███.
 ,███     ███████████████████████     ████
 ████     ███████████████████████'    :███
 ███:    +████████████████████████     ███`
 ███     █████████████████████████`    ███+
,███     ██████████████████████████    #███
'███    '██████████████████████████    ;███
#███    ███████████████████████████    ,███
████    ███████████████████████████.   .███
████    ███████████████████████████'   .███
+███    ███████████████████████████+   :███
:███    ███████████████████████████'   +███
 ███    ███████████████████████████.   ███#
 ███.   #██████████████████████████    ███,
 ████    █████████████████████████+   `███
 '███    '████████████████████████    ████
  ███;    ███████████████████████     ███;
  ████     #████████████████████     ████ 
   ███#     .██████████████████     `███+ 
   ████`      ;██████████████       ████  
    ████         '███████#.        ████.  
    .████                         █████   
     '████                       █████    
      #████'                    █████     
       +█████`                ██████      
        ,██████:           `███████       
          ████████#;,..:+████████.        
           ,███████████████████+          
             .███████████████;            
                `+███████#,               
icanscript
Hero Member
*****
Offline Offline

Activity: 700
Merit: 502



View Profile
May 15, 2015, 03:27:11 PM
 #4

Thank you very much for both your answers.

Very Helpful.
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000


View Profile
May 15, 2015, 04:34:13 PM
 #5

As far as I know, the largest confirmed transaction in bitcoin mainnet is
https://blockchain.info/tx/e951e79d2140b1844d5058bd0f609e3939b040132a1d920ec89c55a2392ef83f
Size = 182160 bytes, Outputs = 5353

Of course, you should not create larger than 100 kb.

In general 1 tx is 226 byte, if you send to 1000 different addresses; it'll be around 226 kb.
No.
One output is 34 bytes long.
So, the transaction with 1000 outputs will be sligtly bigger than 34kb
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!