Quick Start
Install the library
# Install via NPM
npm install --save web3stashImporting and Using Package
// require the webstore module
const {Web3Stash} = require('web3stash');
//or
import {Web3Stash} from 'web3stash';
// provide service name, config properties like privateKeys
const service = Web3Stash(<serviceName>, <config>, <configOptions>)
// Call the methods(Same for all services)
service.uploadJson(<jsonData>, <options>).then().catch()
service.uploadImage(<path to image>, <options>).then().catch()
service.uploadVideo(<path to video file>, <options>).then().catch()
service.uploadFile(<path to file>, <options>).then().catch()
Start using services
Web3Stash(<serviceName>, <config>, <configOptions>)Head to Individual services to get details for configuration!
Last updated