I am working on a casino project and i have integrated bitcoin core rpc to the php script. There will be a lot of deposits and withdrawals by the players. If the fees are huge, players won't come to my site. I see many sites charge only 20,000 satoshis as the fees.
Is it possible for me too to setup the fees like 20,000 satoshis. If yes how do i set up. In my case ill not be in a position to use the GUI version. Please help me
Likewise if your fees are too small then players won't come to your site since they won't get their money withdrawn quickly.
Do not use fixed fees. That will likely result in your transactions remaining unconfirmed for a long time. When that happens, you will likely also end up spending from those unconfirmed transactions and make long chains of unconfirmed transactions. When that happens, you will end up making it impossible for anyone to actually get their money off of your service since it is all tied up in long chains of unconfirmed transactions.
If you really do not want to use a dynamic fee rate which will almost always has you pay a sufficient fee for your transactions to actually confirm, you can set a fixed fee rate using the
settxfee RPC command. This command allows you to set a fee rate in BTC/kB and your transactions will use that fee rate.
Also, to avoid paying a lot in fees and making a lot of transactions spamming up the network, you should batch your transactions. That means that instead of making one transaction for each withdrawal that a person makes, you instead periodically, say, once an hour, make one large transaction with all of the withdrawals that have been made since the last batch transaction. This allows you to reduce the number of long unconfirmed transaction chains, reduce the number of small change outputs that you need to make, and ultimately reduce the transaction fees that you are paying.
Yeah i understand that the lower transaction fees will make the transactions confirmation very slower. But at the same time, if the fees is more client may lose interest right. Other big sites like bitsler and crypto-games charge only around 20,000 to 40,000 Satoshi as the transaction fee. In my case, the default bitcoin core charges fat fees.
Let me test run with settxfee first and check. If i find it is very slow, then ill try to optimize it.
So what command should i run on ubuntu to set up the fixed transaction fee.
bitcoin-cli settxfee 300
Is the above command correct?
In this case will it charge 300 Satoshi per KB? Is it enough if i run that command only once?
Batch transaction is interesting. Please guide me the step by step to configure the batch transactions so that it will be processed once in an hour.
I am new to all these. I am learning things gradually. Hence i am asking very basic questions. Kindly help me..