Namespace: Storage-IPFS

Storage.Storage-IPFS

IPFSBlockStorage uses IPFS to store data as raw blocks.

Source:

Methods

(async) get(hash) → {Uint8Array}

Gets data from an IPFS block.

Parameters:
Name Type Description
hash string

The hash of the block to get.

Source:
Returns:

The block.

Type
Uint8Array

(async) put(hash, data)

Puts data to an IPFS block.

Parameters:
Name Type Description
hash string

The hash of the block to put.

data *

The data to store in the IPFS block.

Source: