Skip to content

Latest commit

 

History

History
137 lines (133 loc) · 6.37 KB

README.md

File metadata and controls

137 lines (133 loc) · 6.37 KB

After running query-txs for a given (entire) epoch, this folder will contain a workspace folder with data files, one file per epoch, containing information of interest about Sui transactions for that epoch. The default workspace name is workspace1 and it can be changed by using the command line argument --workspace for query-txs.

Note

If you a member of iotaledger, you should have access to the data produced by query-txs for several epochs on the organization's shared Google Drive (link), from where it can be downloaded and placed into the workspace1 directory in this folder.

A data file will have the name indicating the epoch number and its boundaries expressed in checkpoints (for example, epoch=021_1584197-1668109.json) and contain the following information:

  • network: (string) indicates which Sui network type (one of "Mainnet", "Devnet", "Testnet") was used to query transactions by query-txs;
  • version: (string) indicates the version of the Sui network used to query transactions by query-txs; for example, "1.12.2";
  • epoch: (unsigned integer) indicates i for which epoch transactions were queried; for example, 21;
  • start_checkpoint: (unsigned integer) indicates the checkpoint at which the epoch started; for example, 1584197;
  • end_checkpoint: (unsigned integer) indicates the checkpoint at which the epoch ended; for example, 1668109;
  • last_cursor: (string) indicates the digest of a transaction at which the query ended; for example, "52WSZ3EmWq9v8TmcSKhTdJgdG1ZrHB7YMmvSyvshywDN"; this may be the last transaction in the epoch, like in this example, or transaction at which the query stopped due to dropped connection, in which case, this digest is used to continue the query of the rest of transactions for the epoch;
  • num_txs_in_epoch: (unsigned integer) indicates the number of transactions in the epoch; for example, 675133; this number is taken from the Sui Explorer and it is saved in the EPOCH_TO_CHECKPOINTS.json data file;
  • num_txs_scanned: (unsigned integer) indicates the number of scanned transactions in the epoch; for example, 675133; this number must match with num_txs_in_epoch meaning that indeed all transactions in the epoch were scanned, otherwise (in the case of dropped connection), the query must be continued to scan the rest of transactions in the epoch;
  • num_txs_touching_0_shared_objs: (unsigned integer) indicates the number of transactions in the epoch that have no shared objects in their inputs; for example, 349769;
  • num_txs_touching_0_objs: (unsigned integer) indicates the number of transactions in the epoch that have no objects in their inputs; for example, 85406;
  • checkpoints: (map) maps from checkpoint (also knowns as sequence number in Sui) being a string to the data (of interest) about that checkpoint; this data includes:
    • num_txs_total: (unsigned integer) indicates the total number of transactions in that checkpoint; for example, 15;
    • num_txs_touching_shared_objs: (unsigned integer) indicates the total number of transactions that have at least one shared object in their inputs in that checkpoint; for example, 8;
    • shared_objects: (map) maps from shared object ID (string) to a set of transactions that have that shared object in their inputs; this map has the following structure:
      SHARED_OBJ_ID: {TX_DIGEST: MUT},
      
      where:
      • SHARED_OBJ_ID: (string) ID of shared object; for example, "0x0000000000000000000000000000000000000000000000000000000000000006";
      • TX_DIGEST: (string) indicates the digest of a transaction that touched that shared object; for example, "DKQDGLoTsY97gbv2mADmiFz8r7mApncKYn1hCqatKeSR";
      • MUT: (boolean) indicates whether the shared object was passed by a mutable or immutable reference in that transaction; for example, false.

A snippet of this data file structure looks as follows:

{
  "network": "Mainnet",
  "version": "1.12.2",
  "epoch": 21,
  "start_checkpoint": 1584197,
  "end_checkpoint": 1668109,
  "last_cursor": "52WSZ3EmWq9v8TmcSKhTdJgdG1ZrHB7YMmvSyvshywDN",
  "num_txs_in_epoch": 675133,
  "num_txs_scanned": 675133,
  "num_txs_touching_0_shared_objs": 349769,
  "num_txs_touching_0_objs": 85406,
  "checkpoints": {
    "1584197": {
      "num_txs_total": 1,
      "num_txs_touching_shared_objs": 0,
      "shared_objects": {}
    },
    "1584198": {
      "num_txs_total": 15,
      "num_txs_touching_shared_objs": 8,
      "shared_objects": {
        "0x0000000000000000000000000000000000000000000000000000000000000006": {
          "DKQDGLoTsY97gbv2mADmiFz8r7mApncKYn1hCqatKeSR": false
        },
        "0x09e24b156b08e7bc5272f9b731e93b80b458f0b79a5195eb81a471d514f1b1b8": {
          "7SGrzSGFfR11UKdTgQKMraZ3DFPZSCWmuA9qqesk6zT9": true,
          "8Xg9JPuwZaiv5m43QuWUyaZqPDrvxzHJNsgGQVRPtdRr": true,
          "DnrSH8k6XYDaMmnqDm5fLgiARGrNkpxVy42CuwFxo8yR": true
        },
        "0x3083e3d751360c9084ba33f6d9e1ad38fb2a11cffc151f2ee4a5c03da61fb1e2": {
          "DKQDGLoTsY97gbv2mADmiFz8r7mApncKYn1hCqatKeSR": true
        },
        "0x4a8e6a4634e3dedae00ffe9f065351664ba32d7e9c2d26221a666ca380ea68b9": {
          "4MY3VWLce6kUWFa28BDNXBnEGTBBEhfQVuXN4vKBzbNX": true
        },
        "0x64168ef7953cbdb3cf0b3e4f13301061740d2b1d015900e1ae025d31515ad830": {
          "2pUbL3pSrsxNvJ42fgDETFpW9t58wHhHWbKFppK3vkeu": false,
          "5fWWr9TnYw3c8AL63845pFyXYXxBUA91TUqt4Q2uNNU1": false
        },
        "0x6bdeb62b036f5f9c3f0587a0480e6dd75cb4e758660cf30b542c031fa394bb83": {
          "DnrSH8k6XYDaMmnqDm5fLgiARGrNkpxVy42CuwFxo8yR": true
        },
        "0xb2b140b2841329320b66f92373a2683af7f9066472233effab03755270bcf65f": {
          "AWeevWRKWPK59Uisv3D32totUe9XK7DeFAvLyb744BmJ": true
        },
        "0xbf471e4f38f76ed88f18e44f3dce2c27e03c1857d51ea17cd9b230b6d69b4bc1": {
          "DnrSH8k6XYDaMmnqDm5fLgiARGrNkpxVy42CuwFxo8yR": true
        },
        "0xf0c8e045496bddbef8261cd816f21f84368adafee230fa909a2403c473bdbee7": {
          "2pUbL3pSrsxNvJ42fgDETFpW9t58wHhHWbKFppK3vkeu": true,
          "5fWWr9TnYw3c8AL63845pFyXYXxBUA91TUqt4Q2uNNU1": true
        }
      }
    },
  }
}