Cid parse

cid-parse · version 1.0.0 · Encoding & checksums · free, no key needed

Parse a CIDv0 or CIDv1 envelope without hashing content.

Use when you need to: parse cid envelope · inspect cid multicodec · decode cid multihash.

Decide before calling

Read the versioned contract and the supported scope below. Reuse cid-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use cid-parse@1.0.0 for parse cid envelope. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "cid": "QmYwAPJzv5CZsnAzt8auVZRnGi2hMrZrm2suKMaqWwaoFY"
}

Response:

{
  "result": {
    "version": 0,
    "codec": {
      "code": "0x70",
      "name": "dag-pb"
    },
    "multihash": {
      "code": "0x12",
      "name": "sha2-256",
      "digest_length": 32,
      "digest_hex": "9d6c2be50f70695347c6da90ab413d0fdb860d3ef82fcf8282408f334e9571eb"
    },
    "bytes_hex": "12209d6c2be50f70695347c6da90ab413d0fdb860d3ef82fcf8282408f334e9571eb",
    "canonical_text": "QmYwAPJzv5CZsnAzt8auVZRnGi2hMrZrm2suKMaqWwaoFY",
    "standard": "Multiformats CID Specification 1.0",
    "reference": "CID specification 1.0 §CIDv0/§CIDv1 and multicodec/multihash/multibase tables",
    "data_version": "multiformats tables snapshot 2026-10-24"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "cid-parse",
  "version": "1.0.0",
  "input": {
    "cid": "QmYwAPJzv5CZsnAzt8auVZRnGi2hMrZrm2suKMaqWwaoFY"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/cid-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cid":"QmYwAPJzv5CZsnAzt8auVZRnGi2hMrZrm2suKMaqWwaoFY"}'

The machine-readable contract is at /v1/tools/cid-parse/versions/1.0.0.

CLI

node cli.mjs run cid-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.