JSPM

  • Created
  • Published
  • Downloads 8843
  • Score
    100M100P100Q158387F
  • License MIT

Fortmatic Javascript SDK

Package Exports

  • fortmatic

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fortmatic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Fortmatic Javascript SDK

Fortmatic JavaScript SDK lets developers conveniently connect their web apps to the Ethereum blockchain - allowing end-users to interact with their apps on any modern browser, without requiring them to download any browser extensions or mobile dApp browsers.

Documentation

See the Developer Documentation.

Installation

Integrating your app with Fortmatic will need our npm package:

npm install --save fortmatic

Alternatively you can add this script tag to your app’s <head>:

<script src="https://cdn.jsdelivr.net/npm/fortmatic/dist/fortmatic.js"></script>

Usage

After getting accepted into our Private Alpha program, you'll receive an email with an API key that allows your app to interact with the Ethereum blockchain through Fortmatic.

You can then integrate by simply replacing your web3 provider with Fortmatic provider. Now instead of the MetaMask Chrome Extension opening, a Fortmatic modal will open instead - requiring no extra user downloads, and works on all modern desktop and mobile Chrome, Safari and Firefox browsers.

import Fortmatic from 'fortmatic';

// Create client and replace web3 provider
const fm = new Fortmatic('YOUR_API_KEY');
web3 = new Web3(fm.getProvider());

// Send transactions the way your are used to
web3.eth.sendTransaction({/* ... */});