0

Lets say that I execute the code below when the user accesses the deposit page.

my_private_key = random_key()
my_public_key = privtopub(my_private_key)
my_address = pubtoaddr(my_public_key)

And I let the user deposit into my_address.

How would I obtain the value of the users deposit into my_address?

0

You can use the unspent command to find unspent outputs sent to that address, or history to see all outputs to that address whether they are spent or not. Note that it relies on public APIs to read the blockchain for transactions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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