dag_import
/api/v0/dag/import
Imports all blocks present in supplied Content Address aRchive (CAR) files. The command recursively pins the root specified in the .car
file headers, unless pin-roots
is set to false
.
Note: You can't pin multiple DAG roots using this endpoint. For example, if supplying multiple .car
files in the same request. If you try, you'll receive the only one dag root can be pinned per request
error.
REQUEST
REQUEST PARAMS
file
: string - path to the.car
file.pin-roots:
boolean - pin the root listed in the .car headers after importing. The default istrue
. Only one DAG root can be pinned per request.silent
: boolean - no output.stats
: boolean - output statistics.allow-big-block
: boolean - disable the block size check and allow the creation of blocks bigger than 1 MiB. The default isfalse
. Bigger blocks won't be transferable over the standard bitswap.
RESPONSE
On success, the call to this endpoint returns a 200
response with the following body:
Last updated