Skip to content

Instantly share code, notes, and snippets.

@iisaint
iisaint / index.js
Last active December 10, 2021 01:20
Using node.js to deploy a smart contract
const Web3 = require('web3');
const fs = require('fs');
const solc = require('solc');
/*
* connect to ethereum node
*/
const ethereumUri = 'http://localhost:8540';
const address = '0x004ec07d2329997267Ec62b4166639513386F32E'; // user