A key-value storage space on the blockchain.
Address 0xd9889b8649E8CC758782490229eb4F7F9A1d64d9
ABI [ { "constant": false, "inputs": [ { "name": "_key", "type": "string" } ], "name": "fetch", "outputs": [ { "name": "_value", "type": "string" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "string" } ], "name": "store", "outputs": [ { "name": "_stored_val", "type": "string" } ], "payable": false, "type": "function" }, { "inputs": [], "payable": false, "type": "constructor" } ]
In Geth :
> var abi = [ { "constant": false, "inputs": [ { "name": "_key", "type": "string" } ], "name": "fetch", "outputs": [ { "name": "_value", "type": "string" } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "string" } ], "name": "store", "outputs": [ { "name": "_stored_val", "type": "string" } ], "payable": false, "type": "function" }, { "inputs": [], "payable": false, "type": "constructor" } ];
> var address = '0xd9889b8649E8CC758782490229eb4F7F9A1d64d9';
> var blockStore = eth.contract(abi).at(address);
> blockStore.store( 'my_variable_name', 'my variable value' )
Use mist - I can't figure out how to call the store method succesfully using geth.
> blockStore.fetch.call( 'my_variable_name' )
Block Store is listed on the State of the Dapps website :
Here are some of my working notes from start to finish creating an ethereum solidity smart contract :