block_put
/api/v0/block/put
Last updated
/api/v0/block/put
Last updated
Store input as an IPFS block.
REQUEST PARAMS
file
[Required] - The path to a file to be added to IPFS.
format
[Optional] - Content ID format for blocks to be created with. The default is v0
.
mhtype
[Optional] - Multihash hash function. The default is sha2-256
.
mhlen
[Optional] - Multihash hash length. The default is -1
.
On success, the call to this endpoint will return with 200 and the following body:
RESULT FIELDS
Key
- Key of the block.
Size
- Integer indication size in bytes.