maticjs-node
v1.0.1
Published
Example code to interact with Matic Network in node environment
Downloads
1
Readme
Basic Nodejs example
How to use
Clone the repo
git clone [email protected]:maticnetwork/matic.js.git
Edit config.js
PRIVATE_KEY: '<paste your private key here>', // A sample private key prefix with `0x`
FROM_ADDRESS: '<paste address belonging to private key here>',// Your address
Update following lines with your wallet address and key. Be careful with your private key, Use a key your are comfortable with for development purpose.
Install and run:
cd examples/node
npm install
node balance-of-ERC20.js