Skip to content

This is a DeFi to deploy in a Private Ethereum Blockchain Network

Notifications You must be signed in to change notification settings

dariusjvc/My-NodeJS-DeFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js REST API to invoke smart contracts deployed on ethereum

Description:

There are 3 smart contact:

MainToken.sol RewardToken.sol StakingToken.sol

Requirements:

node.js v18.16.0

How to deploy:

  1. Deploy the smart contracts in the blockchain network
  2. git clone https://github.com/dariusjvc/My-NodeJS-DeFi.git
  3. Make sure you create an .env file with ADMIN_PUBLIC_KEY, ADMIN_PRIVATE_KEY, USER_PUBLIC_KEY, SPENDER_TOKEN_ADDRESS and the BLOCKCHAIN_INTERNAL_HOST inside, in the root of the project
  4. npm install
  5. npm run start-dev

API url :

http://localhost:3000/api/docs/#/

About

This is a DeFi to deploy in a Private Ethereum Blockchain Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published