/api/v0/cid/codecs

List available CID multicodecs.

Arguments

  • numeric [bool]: also include numeric codes. Required: no.

  • supported [bool]: list only codecs supported by go-ipfs commands. Required: no.

Response

On success, the call to this endpoint will return with 200 and the following body:

[
  {
    "Code": "<int>",
    "Name": "<string>"
  }
]

cURL Example

curl -X POST "http://127.0.0.1:5001/api/v0/cid/codecs?numeric=<value>&supported=<value>"


Last updated