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

Transaction details of an account showing wrong values for success and aborted #38

Closed
gholami-mohammad opened this issue Sep 7, 2024 · 2 comments

Comments

@gholami-mohammad
Copy link

Problem:
I'm using tonapi-go to get list of transactions of an account. The wallet has some TON, DOGES, and NOTCOIN values.
on deposit transactions, there is transactions with InMsg->DecodedOpName with value of jetton_notify

When checking details of this transaction, values of success and aborted fields are not correct.

The tx hash mentioned in this sample is tx hash of NOT coin deposit on my wallet.

func getTxDetails() {
	txHash := "054fec2e61a1d78fb3f2a934b7f7f15c77301af82090df413c4404cca77e9eb5"

	client, err := tonapi.New()
	if err != nil {
		log.Fatalln(err)
	}

	tx, err := client.GetBlockchainTransaction(context.Background(), tonapi.GetBlockchainTransactionParams{
		TransactionID: txHash,
	})
	if err != nil {
		log.Fatalln(err)
	}

	fmt.Println("success:", tx.Success)
	fmt.Println("aborted:", tx.Aborted)
}

tx.Success expected to be TRUE but it is FALSE and also tx.Aborted should be FALSE but it is TRUE.

@tonkeeper tonkeeper deleted a comment from queenmoon-bot Oct 15, 2024
@tonkeeper tonkeeper deleted a comment from queenmoon-bot Oct 15, 2024
@tonkeeper tonkeeper deleted a comment from Shemse1 Oct 15, 2024
@aleksej-paschenko
Copy link
Collaborator

@gholami-mohammad
TONAPI shows correct data. The transaction was aborted. The tx's value is 0.000000001 TON. That is not enough to run TVM. The compute phase was skipped with cskip_no_gas reason.

But that is OK with jetton notify

@gholami-mohammad
Copy link
Author

@gholami-mohammad TONAPI shows correct data. The transaction was aborted. The tx's value is 0.000000001 TON. That is not enough to run TVM. The compute phase was skipped with cskip_no_gas reason.

But that is OK with jetton notify

Ok Got it. Thanks for information @aleksej-paschenko

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