Skip to main content

Module ipld

Module ipld 

Source
Expand description

IPLD path resolution and DAG inspection CLI commands.

Implements three subcommands under ipfrs ipld:

  • resolve <path> — resolve an /ipld/<cid>/... path and print the value
  • stat <cid> — print codec, size, and link count for a CID
  • links <cid> — list every CID linked from a given block

The additional dag_cli helpers (dag_stat, dag_export, dag_import) are exposed from this module for use by the ipfrs dag command group.

Structs§

ImportStats
Statistics returned after a DAG import operation.

Functions§

dag_export
Export a DAG sub-graph as a CAR v1 stream.
dag_import
Import blocks from a CAR file into local block storage.
dag_stat
Print DAG node stats: CID, size, links, codec.
ipld_links
List all CIDs linked from a given CID.
ipld_resolve
Resolve an IPLD path and print the value.
ipld_stat
Print metadata about a CID: codec, size, links count.
parse_ipld_path
Parse an /ipld/<cid-string>[/seg1/seg2/…] path into its components.