post http://127.0.0.1:5001/api/v1/block/put
Store input as a BTFS block.
Arguments
Arguments | Description | Type | Required? |
---|---|---|---|
arg | The data to be stored as a BTFS block. | file | Y |
format | CID format for blocks to be created with. | string | N |
mhtype | Multihash hash function. Default: “sha2-256”. | string | N |
mhlen | Multihash hash length. Default: “-1”. | integer | N |
pin | Pin added blocks recursively. Default: “false”. | boolean | N |