- basic-smart-contract:
to start quickly,
- Copy-Paste Inbox.sol content into Remix IDE which covers,
- Free Accounts w/ ETHER,
- IDE,
- Testing and
- Ethereum VM inside.
- Select Rinkeby Test Network . Which comes predefined accounts loaded w/ ETHER.
to start on your local and write tests and manually create Ethereum projects, You need: other things, below. basic-smart-contract project was created like below.
npm init
to initialize manually package.jsonnpm install --save solc@0.4.25
solidity compilernpm i -save mocha
for testing contractsnpm i -save web3
for web3 framework to do things w/ ethereumnpm i --save ganache-cli
for ganache local ethereum vm
to deploy Rinkeby Test Network
- Initialize MetaMask account in chrome browser. Save your Mnemonic!
- To get free Ether into your MetaMask account, use this url
- Create an account on infura.io to connect specific node on Rinkeby network.
- create a project.
- copy endpoint of Rinkeby !! Not main network :)
- Need truffle-hdwallet-provider this time.
npm i --save @truffle/hdwallet-provider
- Run
node deploy.js
, then get deployed address - Search that address in
https://rinkeby.etherscan.io/
or inremix.ethereum.org
, change Environment toinjected Web3
. Then At Address, enter deployed address to interact w/ deployed contract
to start on your local and easily create Ethereum projects, You need:
- install ganache-cli for local Ethereum VM
npm install -g ganache-cli
.- Run
ganache-cli
to open server on 127.0.0.1:8545 !
- Run
- install truffle for easy development
npm install truffle -g