import Fortmatic from 'fortmatic';
const fm = new Fortmatic('YOUR_API_KEY');
window.web3 = new Web3(fm.getProvider());
const toAddress = '0xb159752065EA68Ef0B22249Df25864E624fec45D';
const sendValue = web3.toWei(1, 'ether'); // Convert 1 ether to wei
const batch = web3.createBatch();
// Get user account wallet address first
web3.eth.getAccounts((error, accounts) => {
// Construct ether transaction params
// Add send transaction to batch
batch.add(web3.eth.sendTransaction.request(txnParams, (error, txnHash) => {
// Add another send transaction to batch
batch.add(web3.eth.sendTransaction.request(txnParams, (error, txnHash) => {
// Send batch to provider