Skip to content

0xV4L3NT1N3/interacting-smart-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read/Write Contract using ABIs

Full article guide on Etherscan API docs.

Prerequisites

Getting Started

  1. Clone this repository using git clone https://github.com/0xV4L3NT1N3/interacting-smart-contracts.git

  2. In a terminal, run npm install to install the required dependencies

  3. In script.js, replace the node URL and private key variables with your own.

You can create a free Infura/Alchemy account for node access, and generate a private key from Metamask

Remember, private keys and node API keys are sensitive information, do not commit them to version control. Better yet use an environment variable.

  1. Run this code using the command node script.js

About

Read/Write Ethereum smart contracts using ABIs

Resources

Stars

Watchers

Forks