区块链技术(八):以太坊公开拍卖智能合约案例
Favorite
Share
Scan with WeChat
Share with Friends or Moments
这篇文章实现一个简单的公开拍卖智能合约,所有人都可以出价,把以太币发送到指定地址,出价B高于出价A时,那么A的资金会被自动退回。拍卖结束后,商品所有者会收到最高的出价资金。
代码如下:
从这个案例可以看到,智能合约在拍卖领域能让过程更透明公平,最大程度的促进参与者的积极性。下一篇文章我们会介绍一个复杂一点的拍卖智能合约。
本文链接:
https://www.8btc.com/article/91597
转载请注明文章出处
Disclaimer: This article is copyrighted by the original author and does not represent MyToken’s views and positions. If you have any questions regarding content or copyright, please contact us.(www.mytokencap.com)contact
About MyToken:https://www.mytokencap.com/aboutusArticle Link:https://www.mytokencap.com/news/168866.html
Previous:如何使用以太坊钱包对DAO项目进行投票
Next:区块链技术(六):以太坊核心概念(二)
Related Reading


Ripple News: SEC’s Paul Atkins Could Still Object ProShares’ XRP ETF Filing
The post Ripple News: SEC’s Paul Atkins Could Still Object ProShares’ XRP ETF Filing appeared first ...
SEC Puts XRP ETF Decision on Hold, Ripple Settlement Could Decide What’s Next
The post SEC Puts XRP ETF Decision on Hold, Ripple Settlement Could Decide What’s Next appeared firs...
Ethereum Price Shows Strength — Bulls Active and Eyeing Upside
Ethereum price started a downside correction from the $1,850 level. ETH is now consolidating near th...