/stardust-snapshot

Tool to get all outputs from a full stardust snapshot and write them into a .json file

Primary LanguageRustApache License 2.0Apache-2.0

Tool to get all outputs from a full stardust snapshot and write them into a .json file.

For more information about the snapshot file please read https://github.com/iotaledger/tips/blob/main/tips/TIP-0035/tip-0035.md.

Download a new full snapshot from https://files.testnet.shimmer.network/snapshots/latest-full_snapshot.bin or another source (maybe need to rename it to latest-full_snapshot.bin) and then run it with cargo run --release.

Prerequisites

Output looks like 0snapshot.json for a private tangle or like the following for the testnet

{
"ledgerIndex": 0,
"outputCount": 3,
"outputIdsWithOutput": {
"0x00000000000000000000000000000000000000000000000000000000000000000000":{
  "type": 3,
  "amount": "2777530283277761",
  "unlockConditions": [
    {
      "type": 0,
      "address": {
        "type": 0,
        "pubKeyHash": "0x15664f85080415d9081840367d6cea31885f5d929366dffdf063f1c0856baed1"
      }
    }
  ]
},
"0x01000000000000000000000000000000000000000000000000000000000000000000":{
  "type": 3,
  "amount": "1000000000000",
  "unlockConditions": [
    {
      "type": 0,
      "address": {
        "type": 0,
        "pubKeyHash": "0x1d9e7a9f6849d9ce9282ee08775b7aee6aaf6034f12d70064d005f543b01a2f2"
      }
    }
  ]
},

    ...

"0x02000000000000000000000000000000000000000000000000000000000000000000":{
  "type": 3,
  "amount": "1000000000000",
  "unlockConditions": [
    {
      "type": 0,
      "address": {
        "type": 0,
        "pubKeyHash": "0x60200bad8137a704216e84f8f9acfe65b972d9f4155becb4815282b03cef99fe"
      }
    }
  ]
}
}
}