0

Suppose that I want to check all the valid deposits of the results of bitcoind’s rpc call listsinceblock transactions, can I found a ‘receive’ transactions with ‘amount’ as 0? Should I consider that as a valid deposit?

https://developer.bitcoin.org/reference/rpc/listsinceblock.html

1 Answers1

1

I think creating zero value UTXOs would be an attack, attempting to clog Bitoin nodes.

See

RedGrittyBrick
  • 26,841
  • 3
  • 25
  • 51
  • ok thank you! Is there a minimum amount of bitcoin that should considered as valid (non attack)? I mean, if I have 1 E-10, can I consider it valid? And how much decimal can have? – Giacomo Brunetta May 09 '22 at 08:20
  • I have added a link to my answer which explains the lower limit – RedGrittyBrick May 09 '22 at 08:23
  • oh, fine! Another question: is it true to consider just "receive" transactions to check only deposits? – Giacomo Brunetta May 09 '22 at 08:30
  • 1
    Hi, please use the Ask Question button at top of page to ask a new question. – RedGrittyBrick May 09 '22 at 08:33
  • done; https://bitcoin.stackexchange.com/questions/113647/consider-only-deposits-in-a-bitcoind-s-rpc-call-listsinceblock-transaction-retur – Giacomo Brunetta May 09 '22 at 08:40
  • Actually I don’t understand which relayfee I have to consider to calculate Dust. It seems that there is not a standard value – Giacomo Brunetta May 09 '22 at 11:43
  • Different nodes can set different values. The effect is that some nodes might relay a small unconfirmed transaction and others might not. If enough nodes will relay it, it might reach a miner, the miner might include it in a block that all nodes would then accept. – RedGrittyBrick May 09 '22 at 12:03
  • Then, if a transaction is close to 0, but have more than 6 confirms, do I need to consider it? – Giacomo Brunetta May 09 '22 at 12:13
  • You must choose the level of risk you are comfortable with. For very small value transactions that might be 0 (high risk) for buying a house that might be 6 (low risk) – RedGrittyBrick May 09 '22 at 12:16
  • ok thank you. For example now I'm managing a list of testnet/regtest transactions, because address start with "2" and "m" I think I could say this. In this case, I also need to avoid dust transactions? – Giacomo Brunetta May 09 '22 at 12:27
  • Maybe take the [tour]? Note what it says about the purpose of comments. – RedGrittyBrick May 09 '22 at 12:31
  • but of course I'm asking clarification about your answer! I would like to clarify if dust need to be considered also for testnet transactions – Giacomo Brunetta May 09 '22 at 12:38