Skip to content

ice09/oraclize-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 15 commits ahead, 5 commits behind ether-camp:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
web
 
 
 
 

Build you own Oracle

This sample application is based on the oraclize-example of the Ethereum Studio and is the implementation part to the blog posts Gambling with Oracles and Build your own Oracle with Ethereum Studio.

  • Clone the project to your workspace.
git clone https://github.com/ice09/oraclize-example.git
cd oraclize-example
  • Start the web server for your own Oracle
npm install http-server -g
http-server
  • Select the project and start a sandbox. It will use Oraclize sandbox plugin with the following params (see ethereum.json):
"plugins": {
  "oraclize": {
    "networkID": 161,
    "loadRealData": true
  }
},
  • Open a dialog of contract Contract and call update() with value 100000000000000000 in advanced parameters.

You will see requests and response in Oraclize Panel and contract logs in Ethereum Console.

Deploying to Morden

  • You can also deploy to Morden, you will have to change the networkID to 2 in ethereum.json and in the contract.sol constructor
  • Also, follow the instructions in the corresponding blog post
  • For invocation in Morden, always use 1 Ether as value for all calls to bet() or update()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published