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.
For more information and support, see https://docs.fortmatic.com/web3-integration/network-configuration#switch-network-to-custom-node
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());