Docs

Storage

DownloadImage

Download an image from a URL or IPFS URI into a Sprite object.

var data = await sdk.Storage.DownloadImage("{{image_url}}");

DownloadText

Download text data such as JSON from a URL or IPFS URI.

var data = await sdk.Storage.DownloadText<string>("{{text_uri}}");

UploadFromPath

Upload and pin data in IPFS using the path to a file.

var data = await sdk.Storage.UploadFromPath("{{path/to-file}}");

UploadText

Upload raw data to IPFS.

var data = await sdk.Storage.UploadText("Hello world!");