Skip to content

Instantly share code, notes, and snippets.

@georgecode
georgecode / App.js
Last active Mar 22, 2019
create_UI
View App.js
// basic_web3js_transaction_tutorial/src/App.js
import React, { Component } from "react";
import "./App.css";
import Web3 from "web3";
import Tx from "ethereumjs-tx";
//Specifies which network you want to use ie. testnet mainnet ect...
const web3 = new Web3(
new Web3.providers.HttpProvider(
@georgecode
georgecode / App.js
Created Mar 21, 2019
Set up web3.js and ethereumjs-tx
View App.js
// basic_web3js_transaction_tutorial/src/App.js
import React, { Component } from "react";
import "./App.css";
import Web3 from "web3";
import Tx from "ethereumjs-tx";
const web3 = new Web3(
new Web3.providers.HttpProvider(
"https://kovan.infura.io/v3/YOUR_KEY_FROM_INFURA"
@georgecode
georgecode / App.js
Last active Mar 20, 2019
Clean_up_boilerplate
View App.js
// basic_web3js_transaction_tutorial/src/App.js
import React, { Component } from "react";
import "./App.css";
class App extends Component {
render() {
return (
<div className="App">
<h1>sudo_web_wallet</h1>