For the complete documentation index, see llms.txt. This page is also available as Markdown.

Storage

Your gateway to decentralized storage.

Upload

Upload anything to decentralized storage. Call the API with file: anything as form-data.

Note: For IPFS, you will get the same id on uploading same content.

POST https://api.shyft.to/sol/v1/storage/upload

var myHeaders = new Headers();
myHeaders.append("x-api-key", "20CcwuFeQOIcfuHx");

var formdata = new FormData();
formdata.append("file", fileInput.files[0], "cb.jpeg");

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: formdata,
  redirect: 'follow'
};

fetch("https://api.shyft.to/sol/v1/storage/upload", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
{ 
    cid: "bafkreig7amamflgtsovczf2el7jt7kuwf274jeaeofjy7iaa34r7exydzm",    //content identifier
    uri: "https://ipfs.io/ipfs/bafkreig7amamflgtsovczf2el7jt7kuwf274jeaeofjy7iaa34r7exydzm"
}

Create Nft Metadata

This API endpoint lets you create an NFT metadata JSON file on decentralized storage (IPFS).

POST https://api.shyft.to/sol/v1/metadata/create

Body Params

  • name: NFT Name

  • symbol: NFT Symbol

  • description: NFT description

  • attributes: attributes associated to this NFT. (Stringify it)

  • share: NFT share

  • image: URI of the NFT image.

  • creator: public onchain address of the creator

  • royalty: (optional) 0 by default.

  • external_url: (optional) any url to associate with the NFT

  • files: (optional) additional files that are to be linked to the metadata of the NFT

Last updated