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!");