File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,10 @@ Although not listed in the documentation, all the following APIs that actually r
21
21
22
22
- ` dagNode ` - a DAG node that follows one of the supported IPLD formats.
23
23
- ` options ` - a object that might contain the following values:
24
- - ` format ` - The IPLD format multicodec.
25
- - ` hashAlg ` - The hash algorithm to be used over the serialized dagNode.
26
- - or
27
- - ` cid ` - the CID of the node passed.
28
- - or
29
- - if no ` options ` are given, ` ipfs.dag.put() ` uses the following defaults:
30
- - ` format: 'dag-cbor' `
31
- - ` hashAlg: 'sha2-256' `
32
- - ** Note** - You should only pass the CID or the format + hashAlg pair and not both
24
+ - ` format ` - The IPLD format multicodec (default ` dag-cbor ` ).
25
+ - ` hashAlg ` - The hash algorithm to be used over the serialized DAG node (default ` sha2-256 ` ).
26
+ - ` cid ` - The CID of the node passed. ** Note** : You should pass the CID or the ` format ` + ` hashAlg ` pair but _ not both_ .
27
+ - ` pin ` - Pin this node when adding (default ` false ` )
33
28
34
29
** Returns**
35
30
You can’t perform that action at this time.
0 commit comments