Merge AssetTrees
The Numbers Commits system operates analogously to the Git version control system. Each commit operation generates a corresponding AssetTree file.
The Read Asset History API returns all Commits and the associated AssetTrees of the asset from its blockchain records. This API further helps users merge all AssetTrees from commits based on the timestamp order, replace the old field with the updated values, and return one merged AssetTree. This effectively builds a comprehensive, unified record of asset histories. The required data format is the same as the commits
list from the output of Read Asset History. A full list of the AssetTrees before merging can be found in the AssetTrees
list from the response.
Be sure to replace YOUR_CAPTURE_TOKEN
with your actual capture token.
In the example request body, two commit objects are being sent
Last updated