Can I run a verify() method to verify a transaction by itself

Hi, is there a similar way I can verify transactions like Simple Payment Verification in Bitcoin? can I just run the verify method in Contract interface to verify a transaction? And this must be done given that I have access to the node?

From a node’s perspective, if you can see the transaction, then it probably means you are a relevant party of the transaction. You can either be an initiator/responders of the transaction or you are a transaction observer (try to think as government regulator has to monitor all stock transaction). Either way, you will be able to verify the transaction.

If you do not have visibilities of the transaction, then it is easy. You dont need worry about the verification at all.

-Peter