Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (2,117)
  • Analysis (2,278)
  • Bitcoin (2,878)
  • Blockchain (1,758)
  • DeFi (2,077)
  • Ethereum (2,060)
  • Event (72)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (2,123)
  • Press Releases (10)
  • Reddit (1,533)
  • Regulation (1,991)
  • Security (2,755)
  • Thought Leadership (3)
  • Videos (43)
Hand picked
  • U.S. politician’s super suspicious Bitcoin stock trade just earned 200% return
  • Cryptocurrency protection: XRP and SOL face a further crash
  • Grayscale Highlights Solana Growth and $SOL Potential
  • US Bitcoin Spot ETFs extend outing streak to three days
  • Crypto Market Update: Bitcoin and Altcoins Continue Decline for a Week
We are social
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Facebook X (Twitter) Instagram
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
Facebook X (Twitter) Instagram YouTube LinkedIn
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Events
Altcoin ObserverAltcoin Observer
Home»Ethereum»Ethereum in the practice part 2: how to build a better democracy in less than 100 lines of code
Ethereum

Ethereum in the practice part 2: how to build a better democracy in less than 100 lines of code

April 13, 2025No Comments
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Eth org.jpeg
Share
Facebook Twitter LinkedIn Pinterest Email


This is a second article on a series on how to use current Ethereum tools to create smart contracts without the need for programming experience. Download the latest version of the Ethereum portfolio,, Read the first part And let’s be sure!

Creating a token is funnyBut what is the value of a token that is nothing new? We will now create a new contract that uses the tokens that we have just created. The contract will be a democratic organization that lives on the blockchain and that anyone holding an actions token can vote on the proposals.

So let’s go back to “Contracts“And then”Deploy the contract“And glue the DAO source code on “Source of solidity” field. Choose the “Democracy” contract on the selector, then select these parameters:

  • On Rising Field you can add any amount of ether with which you want your DAO to start. Since you can send it to ether at any time in the future, if this is the first time you do, keep the amount to 0 and send the money later.
  • On sharing Field, stick the address of the token contract you just created. Pay attention to the icon and the color of the small circle that appears on the side of the address. If it does not correspond exactly to that of the contract you created previously, there is an error.
  • On MinuMUMSHARESFORVOTING Choose which is the minimum quorum of shareholders who must vote on a question before its adoption. Here, you must put the whole number of the minimum possible token, so if you have created a token with 2 decimals, put 500 here means that for a proposal to be executed, the number of votes must represent more than 5% of the total of the company’s shares.
  • Minutesfordebating: This is the minimum time, a proposal of which must be discussed and voted before the results can be completed. Put a small number like 10 minutes if you just want to create something for tests, but put something like 20,000 if you want to store large amounts of ether, so all the proposals must stay there for at least two weeks.

Your contract should look like this:

Screenshot of the Ethereum 2015-12-03 portfolio at 3.50.36 PM 16

After a few seconds, you will be redirected to a dashboard where you will see your new contract being created:

Screenshot of the Ethereum 2015-12-03 portfolio at 3.50.36 pm 13

You can also see the link to the new contract on the “Contracts” tab. If it is not there (for example: if you add a contract that you have not created), you will have to add it manually. To add that you will need the address of the contract and the JSON interface, a text chain that explains to the wallet how to interact with the code. You can choose any name you want and press OK.

Ethereum Wallet screen 2015-12-03 at 9.57.34 AM

Click on your new contract box and you will see a contract page. If you have not already deposited a little ether on this contract, click on the deposit and put a small amount of ether so that you can test the functioning of this particular democracy. If the contract already has funds, click on the “Show contract information” button.

On “Read contract” You can see all the functions you can perform for free on the contract, as they only read Blockchain information. Here, you can see, for example, that the “Sharestokedress” is indeed the right address or that there is currently 0 proposals on the contract. Let’s change that.

On “Write to the contract” You have a list of all the functions that will try to make a calculation that records data at the blockchain, and which will therefore cost Ether. Select “Newproposal” and it will display all options for this function.

Ethereum portfolio screen 2015-12-01 at 6:10 p.m. 32 pm

For “beneficiary”, add someone to someone you want to send ether, then put the number of ethers you want on the “Etheramount” (must be an integer) and finally a text describing the reason why you want to do it. Leave transactionbytecode empty for the moment. Click Execute and enter your password. After a few seconds, the Numposals will drop to 1 and the first proposition, number 0, will appear on the left column. As you add more proposals, you can see any of them by simply putting the proposal number on the “offer” field and you can read everything on this subject.

Voting on a proposal is also very simple. Choose “vote” on the function picker. Type the proposal number on the first box and check the “yes” box if you agree (or leave it empty to vote against). To click “execute“To send your vote.

Screen shot 2015-12-01 at 6:18 p.m.22 pm

When the minimum voting time has passed, you can select “Executeproposal”. If the proposal simply sent ether, you can also leave it “TransactionbyTecode“Empty field. After pressing” execute “but before typing your password, pay attention to the screen that appears. If there is a warning on the” consumption of estimated costs “field, this means that for any reason, the function called will not run and will be suddenly terminated. The original proposal had.


Ethereum Wallet screen 2015-12-01 at 6:30 p.m.

If everything went well, you should be able to see the results of the vote in a few seconds. THE “Openvote“The parameter on the first box will turn into false while the propose will reflect whether the proposal has been accepted or not. You should also be able to see that the balance of the contract will drop and that the equivalent ether will be sent to the beneficiary of the ether you wanted to send.

Now take a moment to let in: you have just created an organization that only exists on the blockchain, which obeys the votes according to the completely digital tokens, but it can however advance the real value and create a very real impact on the world. Also note that the organization is no longer under your control: it will only perform the exact code you have used to create it, forever. You cannot bribe it, you cannot affect it and the same rules apply to 0.01 or 1,000,000 ethers.

Can it become better than that? In fact, it can. On our next article, we will explore how you can use “transactionbytecode” to allow the DAO to execute any type of transaction Ethereumeven have or create other contracts. We will also modify the token code to allow the DAO to control the amount of token that exists on traffic and how to move it forward.



Source link

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleVaneck Files for the first BNB ETF in the United States
Next Article Dogecoin increases while merchants liquidate 71 billion DOGE in the middle of the recovery of the cryptography market

Related Posts

Ethereum

Ethereum Kimchi Premium hits new high – sign of impending sell-off?

October 19, 2025
Ethereum

BitMine increases its Ethereum holdings to 2.5% of the total ETH supply in a wave of strategic purchases

October 19, 2025
Ethereum

Here’s Why Bitcoin and Ethereum Prices Crashed

October 19, 2025
Add A Comment
Leave A Reply Cancel Reply

Single Page Post
Share
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Featured Content
Event

Zebu Live 2025 Returns to London with Coinbase, Ripple, Binance, and More Leading the UK’s Web3 Revolution

October 17, 2025

London, UK, October 16th, 2025 — Zebu Live, London’s flagship Web3 summit, returns this October…

Event

WOW Summit Hong Kong 2025 Concludes, Cementing the City’s Status as a Global Tech Epicenter

October 15, 2025

Hong Kong once again became the heartbeat of global innovation as WOW Summit Hong Kong…

1 2 3 … 58 Next
  • Facebook
  • Twitter
  • Instagram
  • YouTube

Grayscale Highlights Solana Growth and $SOL Potential

October 20, 2025

Binance Closes 600 User Wallets: Will This Impact BNB’s Rally to $1,500?

October 20, 2025

MYX Retraces 100% of Its Rally – Can Bulls Reclaim $5 Next?

October 20, 2025
Facebook X (Twitter) Instagram LinkedIn
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
© 2025 Altcoin Observer. all rights reserved by Tech Team.

Type above and press Enter to search. Press Esc to cancel.

bitcoin
Bitcoin (BTC) $ 111,016.74
ethereum
Ethereum (ETH) $ 4,033.47
tether
Tether (USDT) $ 1.00
bnb
BNB (BNB) $ 1,114.81
xrp
XRP (XRP) $ 2.45
solana
Solana (SOL) $ 192.18
usd-coin
USDC (USDC) $ 1.00
staked-ether
Lido Staked Ether (STETH) $ 4,030.69
tron
TRON (TRX) $ 0.322446
dogecoin
Dogecoin (DOGE) $ 0.200418