NFT.Storage.Net - minimalistic C# .net interface

Don’t know if this is right here or in the nft Forum.

I have written a small nft.storage library. As of right now, it can only upload but it does the job. Perhaps will be expanded in the future or you want to expand it.

Current Features:

  • Upload Files with a size up to 100mb to nft.storage
  • Files are uploaded in your account (api key required)
  • Returns Sha256Sum, CID and URL of the file
  • validates uploaded copy sha256sum against local file
  • Can be used async
  • implements the nft.storage rate throttling (10 uploads per 10 seconds per api key)

Feel free to use it if you are programming something in .net c#

usage example:

// generate a unique test image, resembling a UUID
GUID_Image.GenerateGuidImage("Testfile1.png");
// create api instance
NFT_Storage_API api = new NFT_Storage_API(GlobalVar.TestApiKey);
NFT_File file = api.Upload("Testfile1.png").Result;
// use url for rpc, sharing, opening file or getting checksum 
string url = file.URL;
string checksum = file.Sha256Sum;
1 Like
  • Now supports bulk uploads.
  • Added upload pipeline which automatically concatenates files to folders with respect to api limitations.
    (is still painfully slow)