import Fortmatic from 'fortmatic';
const fm = new Fortmatic('YOUR_API_KEY');
window.web3 = new Web3(fm.getProvider());
// Get your contract ABI from compiled smart contract json
const contractAbi = [{"constant": true,"inputs": [],"name": "name","outputs": [{"name": "","type": "string"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": true,"inputs": [],"name": "getValue","outputs": [{"name": "","type": "string"}],"payable": false,"stateMutability": "view","type": "function"},{"constant": false,"inputs": [{"name": "_name","type": "string"}],"name": "setValue","outputs": [{"name": "","type": "string"}],"payable": false,"stateMutability": "nonpayable","type": "function"}];
// Create contract object
const contractAddress = '0x4efA9a82bFE112a9174325561bcdD1c68044724c';
const contract = new web3.eth.Contract(contractAbi, contractAddress);
// Get user account wallet address first
web3.eth.getAccounts().then((accounts) => {
// Make the contract call.
contract.methods.setValue(
).send({from: accounts[0]})
.once('transactionHash', (hash) => { console.log(hash); })
.once('receipt', (receipt) => { console.log(receipt); });