π¦Install with NPM
Fortmatic Installation Script
npm install --save fortmaticWeb3 Installation Script
# Install latest web3 1.0.0-beta.x version
npm install --save web3
# Or install stable web3 0.20.x version
npm install --save [email protected]Import into Web3 dApp
import Fortmatic from 'fortmatic';
// Works for web3 1.0 and pre-1.0 versions
import Web3 from 'web3';
// Pass in the network string value if using test API key
const fm = new Fortmatic('YOUR_API_KEY');
window.web3 = new Web3(fm.getProvider());
// Send transactions the way your are used to
web3.eth.sendTransaction({/* ... */});Last updated
Was this helpful?