Constructor
# new DexStorage(params)
DexStorage Object
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
ipfsClientHTTP |
String
|
Optional, IPFS Infura Node API or object |
Methods
# async get(params) → {String}
Get Data
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
cid |
String
|
CID String, if image blob info |
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 |
CID (Hash to be used to access the params.data later)
String