Our application puts
dag nodes with ipfs.dag.put
. There is no corresponding ipfs.files.add
command though. The dag
api is very simple with just put
and get
. Does putting pin
CIDs? How can I permanently pin
dag nodes?
1 Like
Any word on this? I’m curious about the same thing.
According to this page, pinning in js-ipfs isn’t implemented yet.
Wondering if dag put
takes care of pinning or, should the generated CID
be explicitly pinned? Anyone has any insights?
The documentation for the HTTP API describes an optional parameter for pinning. Since js-ipfs goes through the HTTP API when a daemon is running on the same machine, I’d expect it to support this parameter. But then, I don’t use JavaScript, so I can’t say for sure. Just try, or look at the source.