Bitcoin Forum
May 22, 2024, 12:35:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What fee should I use for my very large transaction?  (Read 541 times)
aj5577 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 23, 2017, 01:18:21 AM
 #1

I have a wallet on blockchain.info. I am using their API to do a "send to many" transaction. I am sending bitcoin from my wallet to about 3000 addresses. Around 200USD to each address. I was told that a send to many is counted as a single transaction, not 3000 separate transactions ( true or false? ).

I want to know what an optimal fee to use is so this transaction does not get stuck in limbo or go very slow.

Thanks!!!!
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 259

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
May 23, 2017, 01:25:19 AM
 #2

You can use http://www.mocacinno.com/page/feeestimate to estimate the necessary fee. Although a send-to-many is a single transaction, it is larger than a transaction to a single address, due to the fact that each of the 3000 addresses is an output of the txn. Figure out how many inputs you need (outputs=3000) based on the current unspent outputs available in your wallet.

Anyway, if you're dealing with 3000*200=600 000 USD, you should probably use a more secure wallet than blockchain.info. Ideally, you'd use a secure hardware wallet (such as Trezor with proper backups/safeguards) or a cold offline wallet.

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
aj5577 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 23, 2017, 10:23:35 AM
 #3

I'm really lost on figuring out inputs and outputs, and how many bytes my transaction will be.

There is an API at https://bitcoinfees.21.co/api which will give a estimate of the "fastest fee" but it is measured in satoshi per byte. Again how do you know how many bytes the transaction will be??

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
May 23, 2017, 10:55:42 AM
 #4

The basic formula is: TX Size = (#Inputs * 148) + (#Outputs * 34) + 10

Outputs is easy... basically how many addresses are you sending to? You said 3000... so that part is sorted.

For the inputs, you would need to see how many UTXOs you currently have in your wallet... and figure out the minimum number of UTXOs that you would need to use to get to the required amount you need to send + fee.  Unfortunately, I can't see any API call that would assist with this part... so you'd need to go through your wallet manually to figure it out. For each UTXO you need to use, that equals 1 input. So, if you needed to use say 20 UTXOs to get to the required amount, you'd have 20 inputs.

Then you can just pop those two numbers into mocacinno's fee estimate, Option #2 and click estimate...


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
aj5577 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 23, 2017, 11:58:37 AM
 #5

When I go to my wallet and click "addresses" it shows 0. This is on blockchain.info.

Is that normal? I never receive money with this wallet hence the zero addresses I suppose.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
May 23, 2017, 01:12:09 PM
 #6

So how exactly are you intending on sending out a total of 266.55 BTC, split across 3000 addresses if you have no bitcoins in your wallet? Huh


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
aj5577 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 23, 2017, 01:24:57 PM
 #7

Oh I didn't think about this all the way through, I just looked at the display in the wallet ( shows 0 address for some reason ).

But since I did receive the initial deposit it has to have at least 1.

So I'd do the estimation as 1 input and 3000 outputs?
zupdawg
Hero Member
*****
Offline Offline

Activity: 672
Merit: 508


View Profile
May 23, 2017, 01:32:09 PM
 #8

Oh I didn't think about this all the way through, I just looked at the display in the wallet ( shows 0 address for some reason ).

But since I did receive the initial deposit it has to have at least 1.

So I'd do the estimation as 1 input and 3000 outputs?

is that initial deposit in only 1 transaction? if yes then you are correct, 1 input and 3000 outputs. tho, you can give us the address you are planning to use so we can help much further about the number of input

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
aj5577 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 24, 2017, 02:51:25 AM
 #9

So I was messing with the estimation tool. I guess if you are sending small amounts of money then the fees will kill you.

For example say I was going to send $1usd to 17 people from a single address ( 1 input, 17 outputs ).

The recommended fee to get into the next block is $4. So a $4 fee to send $17. That's pretty high percentage wise.

Is bitcoin designed to only send large amounts to single outputs ( the fee for sending a million dollars to one address would be a few cents - 1 input 1 output ).

Little payments I guess are discouraged?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
May 24, 2017, 04:27:55 AM
 #10

That is a transaction size of:

148 + (17 * 34) + 10 = 736 bytes. Given that a "standard" (1 input, 1 output + change address) transaction is ~226 bytes, you've effectively managed to send 17 transactions for the price of sending to 3(.25) Tongue

Send to many is definitely a great option.

Honestly, with the way the network is overloaded and "recommended" fees being so high... if you are wanting to do little micro payments, need fast confirmations and are getting all anxious about "high fees", you may as well go use altcoins like DOGEcoin or Litecoin or something... Undecided

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!