Skip to content

Installing for browser usage

Vsevolod Trofimov edited this page Jul 3, 2018 · 4 revisions

Bundle usage

This guide assumes that you are already using webpack, parcel or roullup to bundle your app and have it installed and configured.

1. Install web3 in your project

npm install web3

We've colleced solutions for common issues with installing web3. This might help if npm install web3 didn't work.

2. Install casperapi

npm install casperapi

Drop-in usage

Copy /dist/casper.min.js it's a UMD build. Module name: casperapi. You'll have to provide Web3 v1 by yourself.

Note: most CDNs serve web3 v0.20

Clone this wiki locally