2.13.0 • Published 10 months ago

@cere-ddc-sdk/ddc v2.13.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

@cere-ddc-sdk/ddc

The package provides API for interacting with DDC Storage nodes.

Installation

Using NPM:

npm install @cere-ddc-sdk/ddc --save

Using yarn:

yarn add @cere-ddc-sdk/ddc

Usage

The package provides various low-level APIs to work with DDC. Here is a simple example of how to upload a small piece of data using the StorageNode API.

import { StorageNode, StorageNodeMode, UriSigner, Piece } from '@cere-ddc-sdk/ddc';

const signer = new UriSigner('hybrid label reunion only dawn maze asset draft cousin height flock nation');
const storageNode = new StorageNode(signer, {
  mode: StorageNodeMode.Storage,
  logLevel: 'debug',
  grpcUrl: 'grpc://localhost:9091',
  httpUrl: 'http://localhost:8091',
});

const bucketId = 1n;
const content = new TextEncoder().encode('Hello DDC');
const piece = new Piece(content);

const cid = await storageNode.storePiece(bucketId, piece);

console.log('Stored piece CID', cid);

Documentation

For more information about what this package provides, see API reference

License

Licensed under the Apache License

2.13.0

10 months ago

2.12.7

10 months ago

2.12.8

10 months ago

2.11.0

1 year ago

2.11.1

1 year ago

2.9.2

1 year ago

2.12.0

1 year ago

2.10.0

1 year ago

2.12.3

1 year ago

2.12.4

12 months ago

2.12.1

1 year ago

2.12.2

1 year ago

2.9.1

1 year ago

2.9.0

1 year ago

2.8.0

1 year ago

2.7.0

1 year ago

2.7.0-rc.2

1 year ago

2.7.0-rc.1

1 year ago

2.6.0

1 year ago

2.5.0

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.0.0-rc.29

2 years ago

2.0.0-rc.28

2 years ago

2.0.0-rc.26

2 years ago

2.0.0-rc.25

2 years ago

2.0.0-rc.24

2 years ago

2.0.0-rc.23

2 years ago

2.0.0-rc.22

2 years ago

2.0.0-rc.20

2 years ago

2.0.0-rc.21

2 years ago

2.0.0-rc.19

2 years ago

2.0.0-rc.17

2 years ago

2.0.0-rc.18

2 years ago

2.0.0-rc.16

2 years ago

2.0.0-rc.14

2 years ago

2.0.0-rc.13

2 years ago

2.0.0-rc.12

2 years ago

2.0.0-rc.11

2 years ago

2.0.0-rc.10

2 years ago

2.0.0-rc.9

2 years ago

2.0.0-rc.7

2 years ago

2.0.0-rc.6

2 years ago

2.0.0-rc.5

2 years ago

2.0.0-rc.4

2 years ago

2.0.0-rc.1

2 years ago

2.0.0-rc.0

2 years ago