Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 495 Bytes

File metadata and controls

40 lines (23 loc) · 495 Bytes

@cere-ddc-sdk/ddc / Link

Class: Link

The Link class represents a link in a DAG.

Example

const cid = '...';
const size = 10;
const name = 'example';
const link = new Link(cid, size, name);

console.log(link);

Properties

cid

cid: string

The content identifier of the link.


name

name: string = ''

The name of the link.


size

size: number

The content size on which the link points to.