Bitcoin Forum
December 12, 2024, 10:39:39 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Private key fees  (Read 170 times)
moh3en85 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 28, 2018, 09:09:30 AM
 #1

How can manage fees while using Private key for send money?
I used Electrum Private key for my website auto withdraws but fees are too high.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3696
Merit: 6538



View Profile
July 28, 2018, 02:05:37 PM
 #2

If I understood correctly, you have have a website where you have to put your private keys (in your case, you used Electrum) so it send funds to other addresses?

If that's the case, the software used to generate the private keys is irrelevant, you have to code the fee calculation algorithm yourself.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
myfrogger
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
July 28, 2018, 02:39:22 PM
 #3

Please post some more details to explain what you are working on.  Tx fees are not set by a private key.
moh3en85 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 28, 2018, 04:58:26 PM
 #4

Please post some more details to explain what you are working on.  Tx fees are not set by a private key.

For example an investment website, it need to receive and pay automatically.
for sending money we use private key
but with private key we can not have control for fee similar to what we do in send money; we don't have any option to change sat/byte in order to have lowest fee.


bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2504



View Profile WWW
July 28, 2018, 06:40:03 PM
 #5

for sending money we use private key

You always need to sign  transaction with the corresponding private key(s).
There is NO other way to send BTC's from one address to another.


but with private key we can not have control for fee similar to what we do in send money; we don't have any option to change sat/byte in order to have lowest fee.

You ALWAYS have control over the fees.
In cases where you don't have control over the fees, the user interface doesn't let you choose the fee. But the system/program/wallet itself has to set a fee.
To be more precise, the fee is determined by the difference of the inputs and the outputs (fee = sum of inputs - sum of outputs).

If you somehow cant set the fee, switch to a desktop-/mobile-/hardware- wallet. Those almost always do allow to set a specific fee.

pooya87
Legendary
*
Offline Offline

Activity: 3668
Merit: 11103


Crypto Swap Exchange


View Profile
July 29, 2018, 03:10:59 AM
 #6

if you are making a "withdrawal" from a website then you don't need private key. you need your address. do NOT give your private keys to anyone. a private key starts with 5 or K or L. but an address starts with 1 or 3 or bc1.

you said "investment site" it sounds more like a scam HYIP and if they are asking for your private key then they are definitely scam.

as for the fee, if you are the "receiver" you don't have control over how much fee is paid. the "sender" should set it. in any case you shouldn't even need your private keys. inside Electrum GUI there are enough options for you to set everything in the "Send" tab.

p.s. if you have trouble with English feel free to shoot me a PM. (based on your username)!

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











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