Bitcoin Forum
April 26, 2024, 02:18:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to make personal RPC for bitcoin mining  (Read 604 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.
1714097890
Hero Member
*
Offline Offline

Posts: 1714097890

View Profile Personal Message (Offline)

Ignore
1714097890
Reply with quote  #2

1714097890
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714097890
Hero Member
*
Offline Offline

Posts: 1714097890

View Profile Personal Message (Offline)

Ignore
1714097890
Reply with quote  #2

1714097890
Report to moderator
1714097890
Hero Member
*
Offline Offline

Posts: 1714097890

View Profile Personal Message (Offline)

Ignore
1714097890
Reply with quote  #2

1714097890
Report to moderator
achow101
Staff
Legendary
*
Offline Offline

Activity: 3374
Merit: 6535


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: 1054


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!