TRON-US / trongrid

The infrastructure for Tron developers
11 stars 9 forks source link

Incorrect data in token_id field #17

Open lutk opened 9 months ago

lutk commented 9 months ago

Hello! I make the following request: https://api.trongrid.io/v1/accounts/TEMct8m9ojjnWA8x6AbFYphPmKbcWHixG5/transactions?max_timestamp=1698548405000&min_timestamp=1698548400000&limit=200&order_by=block_timestamp,asc

In the response, the token_id field contains the value 3566, although it should be 5f. The error is that instead of using the formula hex(value), TronGrid uses hex(hex(value)), where in this case value == "_" (TRX token).

lutk commented 9 months ago

Just compare it with the data obtained through the gettransactionbyid method of TronHttp API.