Skip to content

DAG API #3771

@daviddias

Description

@daviddias

Ref: ipfs-inactive/interface-js-ipfs-core#123

» ipfs dag put --help
#...
  -f,        --format string - Format that the object will be added as. Default: cbor.
  --input-enc         string - Format that the input object will be. Default: json.
#...

As discussed previously:

  • format should take in the names of the formats (dag-cbor, dag-pb, eth-block, etc)
  • There should be an option for hashAlg
  • The endpoint needs to reply with a header that specifies the encoding of the output. A sane default would be cbor all the way and/or have an option for --output-enc too.

Related question:

  • Can we get listed on the --input-enc, the actual supported encoding options available?

For context: https://github.com/ipfs/interface-ipfs-core/issues/81#issuecomment-277271941

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/analysisNeeds further analysis before proceedingtopic/apiTopic apitopic/rpc-apiIssues related to Kubo RPC API at /api/v0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions