Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we determine whether the following two transactions are successful or failed? #102

Open
a402942988 opened this issue Dec 24, 2024 · 2 comments

Comments

@a402942988
Copy link

a402942988 commented Dec 24, 2024

Could you please explain how these two transactions are judged as successful or failed? Is it based on a specific field?

Successful transaction: https://testnet.toncenter.com/api/v3/transactions?hash=7dd1395e2a517a7f91e7369d2554db817121950260b7f3d0b9e753582a57b58b

Failed transaction: https://testnet.toncenter.com/api/v3/transactions?hash=c85c583116e45d76214ca3581de4dc804cd6317efda8152a122641ea55aa792c

@neodix42
Copy link
Owner

from toncenter perspective these look like successful transactions, however, in tonviewer it shows that the second one has failed:
https://testnet.tonviewer.com/transaction/aa3164253416c856aff6468a18c7eefaa3e8eb58cc16a9fc3da48eeefed6752f
you have to refer to right tx hash in toncenter, which is aa3164253416c856aff6468a18c7eefaa3e8eb58cc16a9fc3da48eeefed6752f

@a402942988
Copy link
Author

I have a transaction hash, but I don't know how to determine whether the transaction was successful. Using the Toncenter V2 JSON-RPC API makes it even more unclear, as it doesn't seem to have a field indicating whether the transaction was successful or failed.

Additionally, I noticed that in the V2 API, the following request does not seem to apply the transaction hash parameter correctly. Instead of returning the specific transaction, it always returns a paginated list of all transactions under the specified user. Could you please provide some guidance? Thanks!

Request:
https://testnet.toncenter.com/api/v2/getTransactions?address=0QCGHcq8o0NL82Hj8LuMEr6tNfz7ny2h15QF2rtW203h1hda&limit=10&hash=aa3164253416c856aff6468a18c7eefaa3e8eb58cc16a9fc3da48eeefed6752f&to_lt=0&archival=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants