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:
https://toncenter.com/api/v2/getTransactions?address=Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH&limit=2<=26866552000001&hash=PC%2Bfs9j6b6TVrIwkWlG%2BW%2B0ge2rM%2BzYCWC93GVL7OWM%3D&to_lt=0&archival=true
Check out MDN docs in more (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent)