Skip to content

UploadResult

Namespace Nfty.Core.Publish.Ipfs in assembly Nfty.Core.

public sealed record UploadResult

What an upload pinned, and the addresses a contract needs.

Constructors

UploadResult(string, string, string?, string, string, string?, ExportResult, IReadOnlyList<string>)

public UploadResult(string Provider, string ImageCid, string? ModelCid, string MetadataCid, string BaseUri, string? ContractUri, ExportResult Local, IReadOnlyList<string> Warnings);

Parameters

  • Provider (string) - Who pinned it.
  • ImageCid (string) - The CID of the images/ folder's contents.
  • ModelCid (string?) - The CID of models/, or null when no models were uploaded.
  • MetadataCid (string) - The CID of metadata/ (with collection.json beside the token files when written).
  • BaseUri (string) - The contract's baseURI: ipfs://<metadata CID>/.
  • ContractUri (string?) - The contract's contractURI, or null when no collection.json was written.
  • Local (ExportResult) - The export written to the chosen folder, carrying the same addresses.
  • Warnings (IReadOnlyList<string>) - What about the result is worth stopping for, in Core's words.

Properties

BaseUri

public string BaseUri { get; init; }

The contract's baseURI: ipfs://<metadata CID>/.

ContractUri

public string? ContractUri { get; init; }

The contract's contractURI, or null when no collection.json was written.

ImageCid

public string ImageCid { get; init; }

The CID of the images/ folder's contents.

Local

public ExportResult Local { get; init; }

The export written to the chosen folder, carrying the same addresses.

MetadataCid

public string MetadataCid { get; init; }

The CID of metadata/ (with collection.json beside the token files when written).

ModelCid

public string? ModelCid { get; init; }

The CID of models/, or null when no models were uploaded.

Provider

public string Provider { get; init; }

Who pinned it.

Warnings

public IReadOnlyList<string> Warnings { get; init; }

What about the result is worth stopping for, in Core's words.