0

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 1

0

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.

Source: 1, 2.

2
  • 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. Nov 15, 2023 at 0:57
  • If "locked": false, then you've received payment, the funds are spendable and you can fulfill the order.
    – jtgrassie
    Nov 15, 2023 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.