Class

DexStorage

DexStorage(params)

Constructor

# new DexStorage(params)

DexStorage Object

Parameters:
Name Type Description
params Object

Parameters

ipfsClientHTTP String

Optional, IPFS Infura Node API or object

View Source utils/IPFS.js, line 5

Methods

# async get(params) → {String}

Get Data

Parameters:
Name Type Description
params Object

Parameters

cid String

CID String, if image blob info

View Source utils/IPFS.js, line 38

data (Hash to be used to access the params.data later)

String

# async save(params) → {String}

Save Data

Parameters:
Name Type Description
params Object

Parameters

data String

Data String, if image blob info

View Source utils/IPFS.js, line 26

CID (Hash to be used to access the params.data later)

String