Skip to content

web3-storage/w3stat

Repository files navigation

w3stat

Admin tool to get info about a cid

$ w3stat cid bafybeigfpa7cugx7acsz4omli2yezj6us4xgdrgmducsjuluva7oifemtq
bafybeigfpa7cugx7acsz4omli2yezj6us4xgdrgmducsjuluva7oifemtq
🟢 ok. cid not on denylist
🚘 bagbaieraxlxzbs4wpoiba7zzzgo4a3zjzx5asfdrex5jholcwkwmwiu77lwa
ℹ️  {"blockmultihash":"zQmbdVNNoE96XxAoaePk1zuqhDcCq86CWh6uY7Zcvrxnxv7","offset":588,"length":58,"carpath":"us-west-2/carpark-prod-0/bagbaieraxlxzbs4wpoiba7zzzgo4a3zjzx5asfdrex5jholcwkwmwiu77lwa/bagbaieraxlxzbs4wpoiba7zzzgo4a3zjzx5asfdrex5jholcwkwmwiu77lwa.car"}

Getting started

  • Clone the repo
  • Install the deps npm i
  • Copy .env.tpl to .env
  • Link it npm link to make w3cli available on your path

Commands

w3stat cid

Prints everything the tool can find about a given cid. It is the summary of the more specific commands listed below

w3stat denylist

Is the CID on the denylist?

w3stat dynamo

What block indexes do we have for the multihash in the given cid?

w3stat dudewhere

Do we have any CID -> CAR CID mappings in dudewhere?

Environment

You need the following set in the environment

  • AWS credentials set up
  • R2_ACCESS_KEY_ID - Cloudflare s3 api key id
  • R2_SECRET_ACCESS_KEY - Cloudflare secret key

You can copy .env.tpl to .env and set the values there.

About

CLI to diagnose a CID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published