import Fortmatic from 'fortmatic';
const fm = new Fortmatic('YOUR_API_KEY');
window.web3 = new Web3(fm.getProvider());
const toAddress = '0xb159752065EA68Ef0B22249Df25864E624fec45D';
const sendValue = web3.utils.toWei(1, 'ether'); // Convert 1 ether to wei
// Get user account wallet address first
web3.eth.getAccounts().then((accounts) => {
// Construct Ether transaction params
// Send Ether transaction with web3
web3.eth.sendTransaction(txnParams)
.once('transactionHash', (hash) => { console.log(hash); })
.once('receipt', (receipt) => { console.log(receipt); });