tupelo-wasm-sdk

Home > tupelo-wasm-sdk > Dag

Dag class

Underlies a ChainTree, it represents a DAG of IPLD nodes and supports resolving accross multiple nodes.

Signature:

export declare class Dag 

Constructors

Constructor Modifiers Description
(constructor)(tip, store)   Constructs a new instance of the Dag class

Properties

Property Modifiers Type Description
dagStore   IDagStore  
tip   CID  

Methods

Method Modifiers Description
get(cid)   Gets a node from the dag
resolve(path)    
resolveAt(tip, path)   Similar to resolve, but allows you to start at a specific tip of a dag rather than the current tip.