Generate a random CID
git clone https://github.com/application-research/random-cid.git
cd random-cid
go build .You can use the CLI directly
# random v1 CID
$ ./random-cid
bafkreigd6pc65n4mcfabl3ucv2waoxwizxqizrd32r6cmqjx5zsul4jv3i
# random v0 CID
$ ./random-cid -c 0
QmaA14Co9Q9AuNHcs6KH2ZmJ8sCTwW6ZN7TJfxNcXnrUAXOr you can start an API to retrieve CIDs over HTTP
./random-cid apiThe API endpoints are:
GET /: returns a random CID v1GET /v0: returns a random CID v0GET /v1: returns a random CID v1GET /peer: returns the libp2p peer address for the random-cid ipfs node