Magic Wallet (Fortmatic)

The Magic Wallet SDK leverages a non-custodial Delegated Key Management system to provide a Web3 wallet using a phone number or email for authentication.

Install the NPM Package

npm install --save web3 fortmatic

Example Code

import Fortmatic from 'fortmatic';
import Web3 from 'web3';


// Your setup information
const endpoint = 'https://your.skale.endpoint'; // your SKALE Chain endpoint
const skaleChainId = 123456                     // chainId of your SKALE Chain
const testAPIKey = 'your_test_api_key';

const customNodeOptions = {
    rpcUrl: endpoint,
    chainId: skaleChainId
}

// Setting network
const fm = new Fortmatic(testAPIKey, customNodeOptions);
let web3 = new Web3(fm.getProvider());