BWS.IPFS.Upload
Easily upload Images and JSON to IPFS!
Last updated
Easily upload Images and JSON to IPFS!
Last updated
The BWS.IPFS.Upload service provides a straightforward and efficient method for users to upload images and JSON files to the InterPlanetary File System (IPFS).
You can now use ipfs.bws.ninja
as the gateway to use for the files you uploaded to IPFS using BWS.
For example, check our lovely unicorn on IPFS using BWS Gateway: https://ipfs.bws.ninja/ipfs/QmU7avmnTb4iVbNGCHMJmdEbsx9nRtUx7dWGpKeE7zjo8T
POST
https://api.bws.ninja/v1/call
Use this operation to upload content to IPFS and get the IPFS Content Identifier (CID).
BWS IPFS service is expected to be used for web browsing content! Please note that when uploading your file:
You must optimize your content to be less than 1 MB in size (there is a hard limit of 5MB when uploading files to IPFS using our API).
We currently support JSON, images, and PDF files.
If your use case requires higher file sizes or other file types, please contact us.
When the API call is successfully executed, it returns the IPFS Content Identifier (CID) along with the corresponding IPFS URI and URL. These details facilitate easy access and reference to the uploaded content on the IPFS network.
POST
https://api.bws.ninja/v1/call
Get the list of your IPFS files
Once executed correctly, you will get a list of the IPFS uploaded files using BWS API. That list will contain for each file:
the timestamp of creation (Unix time in milliseconds),
the IPFS Content Identifier (CID),
the file type,
and the URIs to easily access the file
IPFS URI,
web URL - using the BWS IPFS Gateway to fetch the file.
Name | Type | Description |
---|---|---|
Parameter | Type | Desciption |
---|---|---|
Name | Type | Description |
---|---|---|
Parameter | Type | Desciption |
---|---|---|
solution*
string
BWS.IPFS.Upload
operation*
string
new
parameters*
JSON
check Method Parameters
description
string
Short description of your content (will be returned when listing your IPFS files).
content
JSON / base64
Content to save on the IPFS network. We currently support:
JSON (just pass the JSON or the stringified string)
File sent as a base64 encoded string
solution*
string
BWS.IPFS.Upload
operation*
string
list
parameters
JSON
check Method Parameters
from
long
Unix time in milliseconds representing a timestamp to select IPFS files from.
to
long
Unix time in milliseconds representing a timestamp to select IPFS files to.