Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 681 Bytes

user-guide.md

File metadata and controls

34 lines (25 loc) · 681 Bytes

User Guide

All information for developers using weifund-lib should consult this document.

Install

npm install --save weifund-lib

Usage

// get campaigns method
const getCampaigns = require('weifund-lib').getCampaigns;

// get campaigns
getCampaigns({
  // set network
  // or 'testnet'
  network: 'ropsten',

  // set campaign selector
  // array (i.e. array of campaignIDs)
  selector: [0],
}, function (getCampaignError, campaignsResult) {
  // async callback with either error or camapign result
  console.log(campaignsResult);
});

About

The WeiFund library. This contains all methods needed to pull campaign data from IPFS or the blockchain.