I am creating an e-commerce website that accepts monero using the monero JSON RPC API. I need to make sure the confirmations of a payment for any single order are equal to or above 10, I would like to know if the "locked" boolean value tells me this or if it refers to something else. And if so --- what?
1 Answer
Does the "get_payments" JSON RPC call respond with the "locked" value as true only if the confimations are below 10?
No. An output will be locked if 1) the tx is locked till some future time / block, or there are not 10 confirmations.
-
Dont know what happened to my orginal comment; So an unlocked payment output is safe to be recognised as a payment for which I can fulfil an order for? I assume so... But wondering if there are other checks and balances that need to be put in place before sending items. Commented Nov 15, 2023 at 0:57
-
If
"locked": false
, then you've received payment, the funds are spendable and you can fulfill the order. Commented Nov 15, 2023 at 13:11