Module to read the latest snapshot state from iri
Switch branches/tags
Clone or download
th0br0 Merge pull request #5 from th0br0/fix1417
Compatibility with IRI v1.4.1.7
Latest commit b9c2764 Jan 28, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information. Update Nov 20, 2017
index.js Compatibility with IRI v1.4.1.7 Jan 28, 2018
package.json added snapshot logic Jun 8, 2017


Copy or clone source code into your ixi directory such that it can be found as ixi/Snapshot/{index.js, package.json}. Your node may be running at this time, and it will hot-load the script. After you've cloned it, and with a running iri node, run the following command to get the latest snapshot:

curl http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1.4.1' -H 'Content-Type: application/json'   -d '{"command": "Snapshot.getState"}'


  • Make sure the result index matches latestSolidSubtangleMilestoneIndex:
curl http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1.4.1' -H 'Content-Type: application/json'   -d '{"command": "getNodeInfo"}'
  • If not, re-run iri with --revalidate flag, this will re-validate all the milestones & build an up-to-date snapshot. after the latestSolidSubtangleMilestoneIndex is up-to-date, rerun Snapshot.getState API command.

  • it's always best to backup your DB.