Welcome to episode 3 of my series on Ethereum for beginners - hands on tutorials that you can follow step by step to gradually build awareness of the protocol.
In this video I describe how to install the local copy of the browser-solidity compiler so you can compile and deploy smart contracts against your own private Ethereum networks.
Steps/main commands below:
*******
Go to this link
https://github.com/ethereum/browser-s...
**********
Download the zip file and copy/extract to local folder
*************
Open index.html
****************
Paste this into the window
pragma solidity ^0.4.0;
contract greeter { string greeting; function greeter(string _greeting) public { greeting = _greeting; } function greet() constant returns (string){ return greeting; }
function calculateProof(string document) constant returns (bytes32) {
return sha256(document);
}
}
******************
REMEMBER TO RECONNECT THE BROWSER TO THE Web3Provider WHENEVER YOU RESTART
****************
Choose the web3.provider and type http://localhost:8545
***************
Make sure geth is started
geth --datadir "(dir)" --nodiscover --rpc --rpcport "8545" --rpccorsdomain "*" console 2 > console.log
Add the rpc flags above - they are all necessary (have removed all other flags to hide noise)
****************
Ensure the account is unlocked
personal.unlockAccount(eth.accounts[0])
*****************
In this video I describe how to install the local copy of the browser-solidity compiler so you can compile and deploy smart contracts against your own private Ethereum networks.
Steps/main commands below:
*******
Go to this link
https://github.com/ethereum/browser-s...
**********
Download the zip file and copy/extract to local folder
*************
Open index.html
****************
Paste this into the window
pragma solidity ^0.4.0;
contract greeter { string greeting; function greeter(string _greeting) public { greeting = _greeting; } function greet() constant returns (string){ return greeting; }
function calculateProof(string document) constant returns (bytes32) {
return sha256(document);
}
}
******************
REMEMBER TO RECONNECT THE BROWSER TO THE Web3Provider WHENEVER YOU RESTART
****************
Choose the web3.provider and type http://localhost:8545
***************
Make sure geth is started
geth --datadir "(dir)" --nodiscover --rpc --rpcport "8545" --rpccorsdomain "*" console 2 > console.log
Add the rpc flags above - they are all necessary (have removed all other flags to hide noise)
****************
Ensure the account is unlocked
personal.unlockAccount(eth.accounts[0])
*****************
3 Compile and run your first smart contract against local private node - Ethereum from scratch | |
15,329 views views | 6,843 followers |
191 Likes | 191 Dislikes |
Education | Upload TimePublished on 11 Mar 2017 |
contractions, contractor, contracted, contracture, contract definition, contractors near me, contractionary fiscal policy, contractile vacuole, contractors license, contracting, contractions timing, contractions words, contract template, contract law, contractionary monetary policy, contract for deed, contract wars, contractors state license board, contractor salary, contraction alkalosis, compiled, compiler, compile definition, compile synonym, compile python, compiler explorer, compile meaning, compile heart, compiler vs interpreter, compile python to exe, compile java, compile error in hidden module, compile c++, compiled language, compilers principles techniques and tools, compiler design, compile c program, combine pdf, compiled financial statements, compile time vs runtime |
Không có nhận xét nào:
Đăng nhận xét