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

Bug in the tronGrid.account.account.account.getTransactions method #59

Open
VladLypovyi opened this issue Aug 3, 2023 · 2 comments
Open

Comments

@VladLypovyi
Copy link

VladLypovyi commented Aug 3, 2023

Hello!

I wanted to point out a bug in the tronGrid.account.getTransactions method (or endpoint /v1/accounts/{address}/transactions)

In the response with transaction history for the wallet, the incoming REVERTED internal_transaction comes with "rejected": false
But if you request the transaction history for the wallet from which this transaction (outgoing) occurred - the answer will be "rejected": true (which is correct).

Example:

Transaction -https://nile.tronscan.org/#/transaction/98a7dbe13b5dfc6cec27ed756e6e4c790ee4458cb3a20b1ee30b032311f3b902/internal-transactions

Recipient wallet for internal_transaction - TC4soJtqg5umgebs6UKeZ9XeNJM3FdYyRm

When retrieving the transaction history using the query endpoint: https://nile.trongrid.io/v1/accounts/TC4soJtqg5umgebs6UKeZ9XeNJM3FdYyRm/transactions.
In the response, I get:

{
            "internal_tx_id": "9cab089ab589c520f817f46d50444b8ea0e362efc21c73e1f75e5be425f691df",
            { 
              "data": {
                { 
                  "note": {
                     "call",
                     "rejected": false, // which is not true
                }, 
                "call_value": {
                    "_": 1
                }
            },
            "block_timestamp": 1669812915000,
            }, 
            "to_address": "411702b7c3cb32c95d134754b8db39585d1113d90d",
            "tx_id": "98a7dbe13b5dfc6cec27ed756e6e4c790ee4458cb3a20b1ee30b032311f3b902",
            "from_address": "41730407093e6927dd1a0a4b90735244b46ae07780"
}

Wallet sender for internal_transaction - TRURXG7kZ1WfDxptA5pUgGt3g2SYFwLze9

When retrieving the transaction history by querying endpoint: https://nile.trongrid.io/v1/accounts/TRURXG7kZ1WfDxptA5pUgGt3g2SYFwLze9/transactions
In the response, I get:

{
           "internal_tx_id": "9cab089ab589c520f817f46d50444b8ea0e362efc21c73e1f75e5be425f691df",
            { 
              "data": {
                 { 
                   "note": "63616c6c",
                   "rejected": true, // which corresponds to validity 
                 }, 
                 "call_value": {
                    "_": 1
                 }
              },
            }, 
            "to_address": "411702b7c3cb32c95d134754b8db39585d1113d90d",
            "from_address": "41730407093e6927dd1a0a4b90735244b46ae07780"
},
@DmytroShalaiev
Copy link

Same issue, any updates?

@DmytroShalaiev
Copy link

@davidcwhn0304

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