Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 637 Bytes

fortmatic.md

File metadata and controls

35 lines (26 loc) · 637 Bytes

Fortmatic

  1. Install Provider Package
npm install --save fortmatic

# OR

yarn add fortmatic
  1. Set Provider Options
import Fortmatic from "fortmatic";

// Example for Polygon/Matic:
const customNetworkOptions = {
    rpcUrl: 'https://rpc-mainnet.maticvigil.com',
    chainId: 137
}

const providerOptions = {
  fortmatic: {
    package: Fortmatic, // required
    options: {
      key: "FORTMATIC_KEY", // required
      network: customNetworkOptions // if we don't pass it, it will default to localhost:8454
    }
  }
};

Note: A Fortmatic instance is available on the provider as provider.fm