Cid version convert

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

Convert permitted CIDv0 and CIDv1 envelopes without recomputing their multihash.

Use when you need to: convert cidv0 to cidv1 · convert cidv1 dag-pb to cidv0 · re-encode cid version.

Decide before calling

Read the versioned contract and the supported scope below. Reuse cid-version-convert@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-version-convert@1.0.0 for convert cidv0 to cidv1. 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",
  "target_version": 1
}

Response:

{
  "result": {
    "source_version": 0,
    "target_version": 1,
    "cid": "bafybeie5nqv6kd3qnfjuprw2scvucpip3oda2pxyf7hyfasar4zu5flr5m",
    "bytes_hex": "017012209d6c2be50f70695347c6da90ab413d0fdb860d3ef82fcf8282408f334e9571eb",
    "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-version-convert",
  "version": "1.0.0",
  "input": {
    "cid": "QmYwAPJzv5CZsnAzt8auVZRnGi2hMrZrm2suKMaqWwaoFY",
    "target_version": 1
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.