Skip to content

datablockset/blockset-js

Repository files navigation

BLOCKSET-JS

The blockset-js application is a command line program that can retrieve data blocks using a content-dependent tree (CDT) hash function as a universal address of the blocks.

Prerequisites

Installation

To install the latest stable version from npmjs.com, run:

npm install -g blockset-js

To unininstall the blockset, run:

npm uninstall -g blockset-js

Usage

Get a file by address:

npx blockset-js <address> <outputFile> [hostName]

Examples

Get a file from remote storage:

npx blockset-js awt9x8564999k276wap2e5b7n10575ffy946kencva4ve out.txt 410f5a49.blockset-js-test.pages.dev

Get a file from local storage:

npx blockset-js hsdfs1zs8fnf810v8f9k6pjdkz7b4y95sembmswac5sjt out.txt

From a web browser: https://blockset-js.pages.dev/