Home > tupelo-wasm-sdk > Dag
Underlies a ChainTree, it represents a DAG of IPLD nodes and supports resolving accross multiple nodes.
Signature:
export declare class Dag
Constructor | Modifiers | Description |
---|---|---|
(constructor)(tip, store) | Constructs a new instance of the Dag class |
Property | Modifiers | Type | Description |
---|---|---|---|
dagStore | IDagStore |
||
tip | CID |
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. |