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
Answered
How to check what an account balance was at a specific unixtime?

Is it possible to check what balance a specific wallet had in a specific moment in the past, given in unixtime? Is it possible to do that via Toncenter?


This question was imported from Telegram Chat: https://t.me/tondev/52245

Votes Newest

Answers


Unfortunately, the TON http-api does not allow you to specify a block when using getAddressBalance.

https://toncenter.com/api/v2/#/accounts/get_address_balance_getAddressBalance_get

I suppose one way you could go about it is reconstructing the balance over time. Get all of the transactions until the block you're looking at is surpased:

https://toncenter.com/api/v2/#/accounts/get_transactions_getTransactions_get

You can try this with the getTransactions endpoint, just make sure that archival is on. Not an elegant solution, and be sure to test it out instead of taking my word for it.

1
1
Posted one year ago
Jeremy
384 × 5 Administrator
10K Views
1 Answer
one year ago
one year ago
Tags