I am confused when i see this transaction

Test transaction with one input and two outputs

Since scriptpubkey verifies the hash of the sender's public key and sender's signature, i am wondering why the two scriptpubkeys are different. Shouldn't they be the same? I am saying the XXX part in the following should be identical


If not, why not?

1 Answer 1


scriptpubkey is the locking script, it contains the condition to spend this output, so XXX is the hash referent to the address that is receiving, that´s why is different.

Your Answer

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

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