Skip to content

Basic etherium contract for storing user using python and flask

Notifications You must be signed in to change notification settings

parvez301/Eth_smart_contract

 
 

Repository files navigation

#User Contract

Basic etherium contract for storing user using python and flask

How to Setup Project

1-Create virtual env

2-Install Ganache is a personal blockchain for Ethereum development you can use to deploy contracts, develop your applications, and run tests.

npm install -g ganache-cli

3-Install python web3. pip3 install web3

4-Install Flask

pip3 install flask

5-Install Flask Rest

pip3 install flask-restful

6-Install Flask marshmallow is an object serialization/deserialization library

pip3 install flask-marshmallow

7-Start Ethereum Test blockchain server.

ganache-cli

img.png

Ganache gives us 10 default test accounts with 100 fake ethers in each account for transaction. We will use these accounts for deploying and setting values in contracts.

img_1.png

We can see the gas prize and limit along with host:port on which ganache is deployed. We will need this while deploying contract.

About

Basic etherium contract for storing user using python and flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.1%
  • Solidity 36.9%