Simple examples of Node.js app connecting to blockchain using MetaMask and Infura.
- git clone the project
- cd metamask-ethers-node
- npm install
- Create a .env file as .env.example with your configs (follow instructions in the examples)
- Edit the abi.json as your contract require
- Write the code to call the function you want in the end of index.js
- npm start
Tutoriais em
- blockchain (parte 1): https://www.luiztools.com.br/post/integracao-com-a-blockchain-com-node-js-e-ethersjs/
- smart contract (parte 2): https://www.luiztools.com.br/post/integracao-com-smart-contracts-com-node-js-e-ethersjs
Conheça meu curso de web3, blockchain e solidity: https://www.luiztools.com.br/curso-web23
Me siga nas redes sociais: https://about.me/luiztools
Receba novidades no Telegram: https://t.me/luiznews