I wanted to build Gav's pricefeed contract into a fully fledged DApp that potential users could subscribe their contract addresses too, and admins could manage and monitor. So I built this DApp to meet these needs and to act as a starting point for businesses that want to operate trust-based price feeds on Ethereum.
I also threw in a basic python server that pulls thirdparty data and sends it to the price feed contract.
The default title is "Gold Price Today*" which will be my price feed for gold, updated daily. But I've designed the DApp so that it could be modified to fit almost any price feed scenario (e.g. silver, bitcoin etc.).
You can check out the project here:
https://github.com/SilentCicero/meteor-dapp-pricefeedAll The Best, SC
Comments
geth -rpc -rpcaddr "127.0.0.1" -rpcport "8545" -mine
Still nothing. Im sure Im missing something simple.
1. Clear old blockchain data
$ sudo rm -rf ~/.etheruem
2. Create a new account (fill out the password as it asks you and copy the address provided)
$ geth account new
3. Get your rpccorsdomain (this is where your running the dapp from, e.g. localhost:3000 or an YOUR_IP:3000) and run a geth local node
$ geth --unlock=YOUR_ACCOUNT_ADDRESS --rpcaddr="localhost" --rpc --loglevel=5 --maxpeers=0 --rpccorsdomain="http://YOUR_RPC_CORS_DOMAIN" --mine
Note, This is what my command line geth looks like for a local chain:
$ geth --unlock=a78d98c038e15ad862ebb63f83c7abaffcdc7a4d --rpcaddr="172.16.170.134" --rpc --loglevel=5 --maxpeers=0 --rpccorsdomain="http://192.168.0.37:3000" --mine
I'm running a VMWare player instance to run geth, so it has a different domain (i.e. 172.16.170.134) than my local computer (i.e. 192.168.0.37:3000) where I'm running the Meteor DApp. With POC 0.9.4 you need to allow cors access, so wherever your running your Meteor DApp, that is what is should be set to. Also, as you can see, maxpeers is set to zero to create the local chain. And the address you copied is the address you need to put as the unlock parameter. You will be asked when you run GEth to put in the password you created for that account, type it in and hit enter.
Also, next time you try all this, right click the page of the Meteor DApp and provide what is in the console in Chrome. CNTRL+SHIFT+I for browser console.
Cheers, hope this helps
Nick
geth --unlock=e40d25c2ab7eca48a322775dbca1e4679b0ae919 --rpcaddr="localhost" --rpc --loglevel=5 --maxpeers=0 --rpccorsdomain="http://localhost:3000"; --mine
I get the following unlock error in the javascript developer window of the browser.
$ Your Accounts: ["0xadaa812c6e3a62e16b7a4a0751e2285e70aa577d", "0xe40d25c2ab7eca48a322775dbca1e4679b0ae919"]
kwift.CHROME.min.js:514 Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/font-awesome/fontawesome-webfont.woff2?v=4.3.0".
ethereum.js:2606 Object {id: 28, jsonrpc: "2.0", error: Object}
ethereum.js:2608 could not unlock sender account
feedHelpers.js?0b70911986e8100e198561e271389b1a69c85aae:49 New PriceFeed address: null
I'm very interested to see how this dapp will work on the public chain.
Again, great work!
Cheers, there is more to come.