Dapps¶
A dapp is service that enables direct interaction between end users and providers (e.g. connecting buyers and sellers in some marketplace, owners and storers in file storage). Ethereum dapps typically interface users via an HTML/Javascript web application using a Javascript API to communicate with the blockchain. Dapps would typically have their own suite of associated contracts on the blockchain which they use to encode business logic and allow persistent storage of their consensus-critical state. Remember that because of the redundant nature of computation on the Ethereum network, the gas costs of execution will always be higher than private execution offchain. This incentivizes dapp developers to restrict the amount of code they execute and amount of data they store on the blockchain.
Dapp directories¶
Dapps that use Ethereum are compiled to the following lists. They are listed in various stages of development (concept, working prototype, live/deployed). If you are developing a dapp, consider adding an entry to these listings:
- Ethercasts State of the �apps
- Dappslist
- Dappcentral - Sortable pages for Dapps with instructions, code validation, and network stats.
- Dapps Mailing List - Mailing list for developers on Ethereum (discontinued).
The offered decentralised services listed cover a wide range of areas including finance, insurance, prediction markets, social networks, distributed computation and storage, gambling, marketplace, internet of things, governance, collaboration, development and games.
- What apps can we eventually expect? https://www.reddit.com/r/ethereum/comments/2mnl7f/the_top_10_ether_dapps_of_2015/cm63nsf
In the future, dapps are likely to be listed and distributed in dappstores integrated in dapp browsers.
Dapp browsers¶
- Mist - official GUI dapp browser developed by the foundation, alpha stage. Mist as Wallet dapp is in beta.
- Syng - Mobile Ethereum browser (alpha) by Jarrad Hope - supported by DEVgrants
- MetaMask - Aaron Kumavis Davis’s in-browser GUI. Epicenter Bitcoin interview on github - supported by DEVgrants
- AlethZero - C++ eth client GUI, (discontinued).
- Supernova - (discontinued).
Developer Tools¶
Dapp development requires an understanding of the Web3 Javascript API, the JSON RPC API, and the Solidity programming language.
Note
There are developer tools that help you develop, test, and deploy dapps in a way that automatically utilizes the resources listed below.
- Web3 JavaScript API - This is the main JavaScript SDK to use when you want to interact with an Ethereum node.
- JSON RPC API - This is the low level JSON RPC 2.0 interface to interface with a node. This API is used by the Web3 JavaScript API.
- Solidity Docs - Solidity is the Ethereum developed Smart Contract language, which compiles to EVM (Ethereum Virtual Machine) opcodes.
- Test Networks - Test networks help developers develop and test Ethereum code and network interactions without spending their own Ether on the main network. Test network options are listed below.
- Dapp development resources. This assists you in developing, debugging, and deploying Ethereum applications.
Dapp development resources¶
Mix-IDE¶
Mix is the official Ethereum IDE that allows developers to build and deploy contracts and decentralized applications on top of the Ethereum blockchain. It includes a Solidity source code debugger. Mix
IDEs/Frameworks¶
Below are developer frameworks and IDEs used for writing Ethereum dapps.
- Truffle - Truffle is a development environment, testing framework and asset pipeline for Ethereum.
- Dapple - Dapple is a tool for Solidity developers to help build and manage complex contract systems on Ethereum-like blockchains.
- Populus - Populus is a Smart Contract development framework written in python.
- Eris-PM - The Eris Package Manager deploys and tests smart contract systems on private and public chains.
- Embark - Embark is a �app development framework written in JavaScript.
- EtherScripter (obsolete, discontinued)
- Resilience Raw Transaction Broadcaster
Ethereum-console¶
Commandline console for Ethereum nodes.
Ethconsole connects to an Ethereum node running in the background (tested with eth and geth) via IPC and provides an interactive javascript console containing the web3 object with admin additions.
Here you could find a list of available commands ethereum node control commands
To use this console you would need to start a local ethereum node with ipc communication socket enabled (file geth.ipc
in data directory).
By default ipc socket should be located at you local home directory in .ethereum after you started a node.
You could also set --test
option to use specific node test commands.
In the console you could then type
Here the defenition of --test
mode node commands:
More information about node configuration file.
Base layer services¶
Whisper¶
- What is Whisper and what is it used for - stackexchange Q&A
- Gavin Wood: Shh! Whisper - DEVCON-1 talk youtube video
- Whisper overview and dream API usage -
- ELI5
Swarm¶
Swarm is a distributed storage platform and content distribution service, a native base layer service of the Ethereum web 3 stack. The primary objective of Swarm is to provide a sufficiently decentralized and redundant store of Ethereum’s public record, in particular to store and distribute dapp code and data as well as block chain data. From an economic point of view, it allows participants to efficiently pool their storage and bandwidth resources in order to provide the aforementioned services to all participants.
From the end user’s perspective, Swarm is not that different from WWW, except that uploads are not to a specific server. The objective is to peer-to-peer storage and serving solution that is DDOS-resistant, zero-downtime, fault-tolerant and censorship-resistant as well as self-sustaining due to a built-in incentive system which uses peer to peer accounting and allows trading resources for payment. Swarm is designed to deeply integrate with the devp2p multiprotocol network layer of Ethereum as well as with the Ethereum blockchain for domain name resolution, service payments and content availability insurance.
�ΞVcon talks on swarm¶
- Viktor Trón, Daniel A. Nagy: Swarm - Ethereum �ΞVcon-1 talk on youtube
- Daniel A. Nagy: Keeping the Public Record Safe and Accessible - Ethereum �ΞVcon-0 talk on youtube
Code and status¶
- [source](https://github.com/ethereum/go-ethereum/tree/swarm)
- [issues on github](https://github.com/ethereum/go-ethereum/labels/swarm)
- [development roadmap]()
- ethersphere on twitter
- swarm gitter room
- swarm subreddit
Storage on and offchain
Ethereum Alarm Clock¶
- Author: Piper Merriam
- Website: alarm_main_website.
- Documentation: alarm_documentation.
A marketplace that facilitates scheduling transactions to occur at a later time. Serves a similar role to things like crontab in unix, or setTimeout in javascript.
- Decentralized cron service in Ethereum proposal - by Peter Szilagyi
Ethereum Computation Market¶
- Author: Piper Merriam
- Website: computation_market_main_website.
- Documentation: computation_market_documentation.
A marketplace that facilitates verifiable execution of computations off-chain. Allows for very expernsive computations to be used within the EVM without having to actually pay the high gas costs of executing them on-chain.
BTCRelay¶
- BTCrelay
- More information (about ETH/BTC 2-way peg without modifying bitcoin code).
- BTCrelay audit
The EVM¶
The Ethereum Virtual Machine (EVM) is the runtime environment for smart contracts in Ethereum. It is not only sandboxed, but actually completely isolated, which means that code running inside the EVM has no access to network, filesystem, or other processes. Smart contracts even have limited access to other smart contracts.
Contracts live on the blockchain in an Ethereum-specific binary format (EVM bytecode). However, contracts are typically written in an Ethereum high level language, compiled into byte code using an EVM compiler, and finally uploaded on the blockchain using an Ethereum client.