IPFS » Add

Add a file to IPFS

You need to /ipfs/pin/add an object to avoid it being garbage collected. This usage is being counted in your user account quota.

<p> <span class="hosted">Hosted</span> Endpoint only available for hosted variant. </p>
post/ipfs/add

Request

  • Base URL
    https://ipfs.blockfrost.io/api/v0
  • URL
    https://ipfs.blockfrost.io/api/v0/ipfs/add
  • Auth
    API key in header project_id

Request body multipart/form-data

filestring binary

Response

Returns information about added IPFS object

namestring required

Name of the file

ipfs_hashstring required

IPFS hash of the file

sizestring required

IPFS node size in Bytes

Example response

{
  "name": "README.md",
  "ipfs_hash": "QmZbHqiCxKEVX7QfijzJTkZiSi3WEVTcvANgNAWzDYgZDr",
  "size": "125297"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.