Bitcoin Forum
November 09, 2024, 07:57:33 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to make personal RPC for bitcoin mining  (Read 619 times)
bitcoinindia2003 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 10, 2017, 11:58:45 AM
 #1

Hello Users,

I have just started an app for bitcoin trading and the wallet which I am using is block.io. I have made the mining fees as low in the system but then also I am not being able to get exact amount what to send to the miners. Please help to setup something which will help me to send custom mining fees and so I can charge the users. I got to know that in big companies setup there RPC and then they charge using that. Please help me to solve it.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
June 10, 2017, 06:13:06 PM
 #2

Do not try to make the transaction fees extremely low. That will only result in your transactions being unconfirmed for a long time. Furthermore, you should not be trying to set a fixed amount. Fixed transaction fees are no longer a viable option with the current state of the network. You should always be using a fee rate (and not a fixed fee rate either) and dynamic transaction feess.

bitcoinindia2003 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 11, 2017, 03:45:36 AM
 #3

I have just made it low then also its charged a lot and not able to decide what to charge from users. I want to know the method or system RPC which all the companies are using to do the mining fees.
cloverme
Legendary
*
Offline Offline

Activity: 1512
Merit: 1057


SpacePirate.io


View Profile WWW
June 12, 2017, 01:43:33 PM
 #4

Hello Users,

I have just started an app for bitcoin trading and the wallet which I am using is block.io. I have made the mining fees as low in the system but then also I am not being able to get exact amount what to send to the miners. Please help to setup something which will help me to send custom mining fees and so I can charge the users. I got to know that in big companies setup there RPC and then they charge using that. Please help me to solve it.


You can get the recommended fee in two ways:
https://bitcoinfees.21.co/api

You can also call estimatefee from rpc:
https://bitcoin.org/en/developer-reference#estimatefee

Then you can set the fee via rpc (example):
settxfee 0.00320227


Don't ask how to calculate the bytes of a transaction, it's a fools errand that will send you into a downward spiral of doom and dispair where you have to do a create raw transaction and sign it, get the hex code in bytes. Many have been down this path from an RPC standpoint and you can't there. Maybe one day someone will create andultra useful rpc command of GetBytesFromSendToAddress but it's just a pipe dream  Wink
 
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!