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
LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: lt not in db

Hi I'm just trying to get transactions for the address and getting this error from time to time (few times I got successfull response)


 curl -X 'GET' 'https://toncenter.com/api/v2/getTransactions?address=EQBnvfmXYL_z7n4WriIEVrBNKVQBolTD5bx-syCe5B5EtqOy' -H 'accept: application/json'


{"ok":false,"error":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: lt not in db","code":500}
  1. Why I'm getting this error periodically?
  2. Do I need in my own Lite node to avoid this error? What is the reason to use own Lite node?


Posted 6 months ago
Votes Newest

Answers 2

I am in the same situation, it seems that the server does not store the complete block data.
In addition, there is related error handling in tongo@1.4.1/liteap/client.go 648 line, but I didn’t understand it. The approximate code is as follows:
txs, err := c.GetTransactions(ctx, uint32(transactionCount), a, lastLt, ton.Bits256(lastHash))
if err != nil {
if e, ok := err.(liteclient.LiteServerErrorC); ok && int32(e.Code) == -400 { // liteserver can store not full history. in that case it return error -400 for old transactions
return nil, err

Posted 4 months ago
Edited 4 months ago

You probably should add parameter "archival=true" to your transactions query.

Posted one month ago
2 Answers
6 months ago
one month ago