Skip to content

Instantly share code, notes, and snippets.

@georgecode
georgecode / App.js
Last active March 20, 2019 07:40
Clean_up_boilerplate
// 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>
@georgecode
georgecode / App.js
Created March 21, 2019 01:18
Set up web3.js and ethereumjs-tx
// 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 March 22, 2019 00:01
create_UI
// 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(