March 16, 2021 at 9:58 pm #10229jamiejParticipant
Hi Alex. I have done a test depost payment for a new website I’m developing and have a small issue. The deposit of 6000 satoshi has had a fee attached of 30 satoshi. This is not reflected on my coinpayments account just on the website. I have attached a screenshot. Not sure why as I have not seen any option for a deposit fee in the settings. Please advise.
Many thanks, Jamie
Attachments:You must be logged in to view attached files.March 17, 2021 at 8:20 am #10233alexgKeymaster
Ah yes, good point, this is somewhat clumsy. However, it works as expected.
The fee in this case is the fee reported by CoinPayments, not the blockchain fee.
I know this is not consistent with other uses of the fee column, but there’s not much I can do about it.
The IPN “fee” is actually “The fee deducted by CoinPayments (only sent when status >= 100)” (see here).
So, in case of CoinPayments deposits, the fee column holds the fee retained by CoinPayments, not the blockchain fee.
For Bitcoin, the platform retains a fee of 0.05%, and therefore the fee of 6000 satoshi is 30 satoshi. This is on the amount remaining after the blockchain fee is paid to the miners.
I guess you could hack something together that, when seeing a deposit, contacts a bitcoin wallet and finds out the network fee for this transaction and replaces this column. But this would be difficult, error-prone, and would only work for a few coins, it would require the ability to contact a different full node wallet or block explorer for each coin, and would require a lot of maintenance. Moreover, it would defeat the whole purpose of using CoinPayments, which is to not use a wallet. This is why the value reported by the IPN is used.
Consider this: Your deposit could theoretically be a transaction to multiple outputs (such as the transactions originating from another exchange). The blockchain fee belongs to the entire transaction, not just your deposit.
Hope this is clear. Let me know if you have any more questions.
P.S. I am moving this to the CoinPayments forum.
- You must be logged in to reply to this topic.