Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
I'm making the request to TonCenter API, but got this error in my tx_hash.

Hi I am trying to get all transactions for a given address and am working my way backwards in time.

I'm making the following request (using last tx_hash and lt and plugging into the next request to get earlier dates)
https://toncenter.com/api/v2/getTransactions?address=Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH&hash=PC+fs9j6b6TVrIwkWlG+W+0ge2rM+zYCWC93GVL7OWM=&lt=26866552000001&limit=100 and I am getting the following error: 'Couldn't get next transactions chunk: Invalid transaction id hash size - unexpected lite server response:\n\t{"@type": "error", "code": 400, "message".

I checked tx_hash len and is same as others. Does anyone know what is happening here?

This question was imported from Telegram Chat: https://t.me/tondev_eng/1556

Votes Newest


The error message suggests that there is an issue with the transaction id hash size. The hash being used in the request might not be the expected size, causing the server to respond with an error.

One possible solution is to encode the parameters in the request, including the transaction hash, to ensure that the values are being properly passed to the server.

Additionally, double-checking the length and format of the transaction hash could also help to identify any issues.

Which means you should encode your parameters as:

Check out MDN docs in more (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent)

Posted one year ago
1 Answer
one year ago
one year ago