Posts

Showing posts with the label #testrpc

Creating Decentralized Apps Part 2

In this post i will be using javascript to call a contract deployed using Remix IDE and ethereum-js Test RPC(nodeJs) The contract being deployed is pragma solidity ^0.4.0; contract NumberGetNextNumberAresh{ uint index; function getNumber() returns (uint) { index = index + 1; return index; } function myConstantMethod(string a) constant returns (string d) { return a; } function myConstantNumber() constant returns (uint) { return index; } } To get the ABI or  "Interface ABI"   Follow this POST for the "Contract Address" Follow this POST After Deploying you should now be ready to create a UI (interface with html) The html will contain javascript as well <html> <head> <title>Smart Contract Ethereum</title> </head> <body> <fieldset> <button onclick="send()">Send Data</button> <button onclick="...

Creating Decentralized Apps Part 1

Image
In order to create decentralized Apps such as Web applications, Websites, Mobile Apps. we need a way to interact with the blockchain. Solidity Language is merely for creating a programmable interface that runs on the blockchain So in order for us to interact with the Ethereum network (also called a node) we need to use a Client implementation.  There are many client implementations written in languages such as C++,Go,Python, Java,Haskell etc. Once you have a node using one of the clients, you can sync with the blockchain, create wallets and send and receive real ether. So there are 2 well known client implementations. 1. Test RPC - Node.js based Ethereum client for testing and development 2. Geth - Command line interface written in GO language for running a full Ethereum node Source: https://karl.tech/intro-guide-to-ethereum-testnets/ TestRPC is a lightweight Ethereum nodes used for small scale local testnets. Geth is heavyweight Ethereum nodes used for...

The Language of Ethereum Smart Contracts

This Post will be updated Constantly as i progress SOURCE: https://solidity.readthedocs.io/en/develop/ The language to create Ethereum Smart Contracts is "Solidity" There are many integrations for solidity, i will be using Remix mostly as it does not require any additional installations and can run on the latest Chrome Browser Available Solidity Integrations Remix Browser-based IDE with integrated compiler and Solidity runtime environment without server-side components. Geth  For running Ethereum nodes, i will be using Geth https://github.com/ethereum/go-ethereum/wiki/geth as the command line interface. Some advantages with geth, is it allows interaction between the smart contract and creation of a private block-chain network for testing. Capabilities By installing and running  geth , you can take part in the ethereum frontier live network and mine real ether transfer funds between addresses create contracts and send transactions explore...