Interface Receipt<Ok, Error, Ran, Alg>

Represents a view of the invocation receipt. Unlike the ReceiptModel, this interface provides a more ergonomic API and allows you to reference linked IPLD objects of they are included in the source DAG.

Type Parameters

Hierarchy

Properties

ran: Ran | ReturnType<Ran["link"]>

The root block of the IPLD DAG this is the view of. This is the the block from which all other blocks are linked directly or transitively.

Methods

  • Encodes all the blocks and creates a new IPLDView instance over them. Can be passed a multihasher to specify a preferred hashing algorithm. Note that there is no guarantee that preferred hasher will be used, it is only a hint of preference and not a requirement.

    Returns Receipt<Ok, Error, Ran, Alg>

Generated using TypeDoc