Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

evoluchain/Atelier_Ethereum_10mars2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Atelier_Ethereum_10mars2016

lancer testnet

testrpc

lancer serveur truffle (dans rep de l'app)

truffle serve

commandes examples

liste des comptes

web3.eth.accounts

current block

web3.eth.blockNumber

=> 0

send ether

web3.eth.sendTransaction({from: web3.eth.coinbase, to: web3.eth.accounts[1], value : web3.toWei(50, 'ether')})

=> "0x37e64c314fec21e0a14ca07847d39470020194ec43b2ee811499630bb41239dd"

web3.eth.blockNumber

=> 1

deploy contract (console)

truffle deploy

check deployed (web console)

Democracy.deployed()

=> Democracy {contract: h, address: "0xc480993a2647ef7da2707d16ccc4eed2b5873570", web3: r}...

web console

var dem = Democracy.deployed(); dem.votingTimeInMinutes().then(function(res){console.log(res)})

dem.votingTimeInMinutes().then(function(res){console.log(res.toString())})

dem.addProposal("Buy More Beers !", {from: web3.eth.coinbase})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages