The c# nft.storage API library is a convenient tool for uploading and downloading files to nft.storage. With just a few simple lines of code, you can easily manage your NFT assets and interact with the nft.storage platform. This library makes it easy to integrate nft.storage into your project and take advantage of its powerful file storage capabilities.
$ dotnet add package NFT.Storage.Netc# library to easily upload files to NFT.Storage.

public void TestUploadRandomImage()
{
// can upload local files from disk right now
GUID_Image.GenerateGuidImage("Testfile1.png");
// create api
NFT_Storage_API api = new NFT_Storage_API(GlobalVar.TestApiKey);
NFT_File file = api.Upload("Testfile1.png").Result;
string url = file.URL;
string checksum = file.Sha256Sum;
}
-> returns a simplified c# object file
