Upload Data
Upload Data Function
IPFS Upload Data
Uploads data to the IPFS network. This function requires inputs as follows:
- Ipfs Pinning Service 1 : Struct, holds the url and name of the pinning service to send the request to.
- Bearer Token 2 : The API token for authentication.
- Data To Upload 3 : The data to upload(as an array of bytes).
- Save As 4 : Mandatory filename for the uploaded data on IPFS.
The returned Response is a struct that holds data such as headers, status code, and body of the response of the HTTP request.
info
If Success is True that only means the upload to the IPFS network was successful.
If successful, returns the CID 5 of the uploaded data in String format.