Menu logo

Thoughts on Software Engineering

Creating DApps with Ethereum, Solidity, Web3 and MetaMask

Yesterday I had a talk on the JS.talks() conference in Sofia on “Creating DApps with Ethereum“. I demonstrated how to create a “Document Registry” ADpp on the Ethereum blockchain network, using a smart contract coded in Solidity and connecting to the Ethereum network through the Web browser from JavaScript app using MetaMask and its Injected Web3 API.

I compiled the DocumentRegistry.sol smart contract code using Remix IDE and deployed it in a testing Ethereum blockchain network, created by using the TestRPC (it’s a Node.js package). Later, I connected from a JavaScript app to the smart contract using the Web3 API, provided by the MetaMask plugin for Chrome. The DApp users were able to check document validity against the blockchain registry (free for anyone). The smart contract owner were able to upload new valid documents on the blockchain registry through (paid transaction, consuming some gas, allowed for the smart contract owner only).

See the full source code of the demo at my GitHub profile:

Watch the video from the conference (in Bulgarian language) here:


Comments (4)

4 Responses to “Creating DApps with Ethereum, Solidity, Web3 and MetaMask”

  1. Roger says:

    Thanks for sharing your knowledge with us! Was an interesting read, as well as a pretty nice video. What about a more detailed instructions on Solidity language though? I have found a good article not so long ago – build-smart-contract-for-ethereum/ It did really help me to understand some of the basics of creating smart contracts based on ethereum protocol (ERC20 one). Might be a good read.

  2. Dorie says:

    Hello. Very informative post!

  3. coherentlab says:

    This is a nice post. good job!!

  4. Atlasiko says:

    Thanks for the info

RSS feed for comments on this post. TrackBack URL