πMigrating from v1.x
Attention Web3 Developers!
TypeScript Definitions
Passing the Fortmatic Provider to Web3
/* TypeScript */
const fm = new Fortmatic('MY_API_KEY');
const web3 = new Web3(fm.getProvider() as any);Legacy Synchronous Methods are Deprecated
Still Using MetaMask's Injected Web3 Instance?
let web3;
if (window.web3 && window.web3.currentProvider) {
web3 = new Web3(window.web3.currentProvider)
}Last updated
Was this helpful?