Show / Hide Table of Contents

Raw Leaves

The raw leaves option specifies that the file's data blocks are not encapsulated with a Merkle DAG but simply contain the file's data.

The Cid.ContentType is set to raw.

var options = new AddFileOptions
{
    RawLeaves = true
};
var node = await ipfs.FileSystem.AddTextAsync("hello world", options);

// zb2rhj7crUKTQYRGCRATFaQ6YFLTde2YzdqbbhAASkL9uRDXn
// base58btc cidv1 raw sha2-256 QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4
  • Improve this Doc
Back to top Generated by DocFX