dag_put
/api/v0/dag/put
Last updated
Was this helpful?
/api/v0/dag/put
Last updated
Was this helpful?
Add a DAG node to IPFS
REQUEST PARAMS
store-codec
[Optional]: Codec that the stored object will be encoded with. The default is dag-cbor
.
input-codec
[Optional]: Codec that the input object is encoded in. The default is dag-json
.
pin
[Optional]: Set to true
to pin this object when adding.
hash
[Optional]: Hash function to use. The default is sha2-256
.
On success, the call to this endpoint will return with 200 and the following body:
BODY
RESULT FIELDS
Cid
- .