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=<=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?
Apr 7, 2022, 3:30 AM
You should encode your parameters:
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
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
Apr 7, 2022, 7:09 AM