Create a simple smart contract and use the Web3 JavaScript library to compile and then deploy the smart contract base on Infura that
- Provides world-class infrastructure for developers to ensure their decentralized application scales to meet user demand.
- Focuses on making blockchain development a simple, cohesive experience with all of your tools in one place: Ethereum Nodes, Eth2 Nodes, Transaction Relaying, Layer 2 Networks, IPFS, and Filecoin.
- An Etherem project on Infura
- Node.js installed
- An Ethereum account for testing purposes that has sufficient balance ETH Faucet for Ropsten network | mycrypto.com
npm install
ETHEREUM_NETWORK = "ropsten"
INFURA_PROJECT_ID = "<Your-Project-ID>"
SIGNER_PRIVATE_KEY = "<Your-Private-Key>"
node compile.js
node deploy.js
ETHEREUM_NETWORK = "ropsten"
INFURA_PROJECT_ID = "<Your-Project-ID>"
SIGNER_PRIVATE_KEY = "<Your-Private-Key>"
DEMO_CONTRACT = "<Contract_Address>"
node call.js
node sendTx.js