Replies: 1 comment 3 replies
-
Hey @aeryz, The Merkle Trees are currently persisted only at selective block endings and all epoch endings and are subject to aggressive pruning policy Internally you can get the version of the latest servable state tree via or find a state tree before a certain version via but these internal APIs are subject to change without notification. Since we didn't open the merkle proof for querying from outside the node through the RestAPI, may I ask what's your use case? Thanks, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
No response
Describe your question in detail.
Hey! I'm working on a custom API endpoint to fetch the inclusion proof of a
StateValue
at an arbitrary ledger version. I'm callingget_state_value_with_proof_by_version
to read the proof similar to how it's done here, but I'm keep getting this error:The only
ledger_version
's that I'm capable of getting the proof for is the epoch ending ones. Otherwise, theNodeKey
for the arbitrary version that I query for does not exist in the merkle tree and an error is raised here. Is this a limitation of the local test node or is this how Aptos works in general where the merkle tree is only being edited during the epoch ends?What error, if any, are you getting?
No response
What have you tried or looked at? Or how can we reproduce the error?
No response
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
N/A
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions