3 ms·
Is there a "Hello World" version of a DAC? What is the simplest contract I can make? And do I need a 3rd party oracle to confirm anything?
by LAMike 11y ago
Is there a "Hello World" version of a DAC?
What is the simplest contract I can make? And do I need a 3rd party oracle to confirm anything?
- drcode 11y agoIt would look something like: contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } } The solidity compiler will automatically produce a "getter" function to retrieve the greeting.
- csarva 11y agoIt will only be exposed automatically if you mark it public, i.e., 'string public greeting'
- pre 11y agoYep. Running it is about as far as I got with my investigations. https://www.ethereum.org/greeter https://www.ethereum.org/greeter
- CephalopodMD 11y agoWhat is wrong with this website? It is glitchy looking as hell.
- splintercell 11y agoSimpleStorage is one of the 'HelloWorld' equivalents of DAPPs. http://solidity.readthedocs.org/en/latest/introduction-to-smart-contracts.html http://solidity.readthedocs.org/en/latest/introduction-to-sm... Third party oracle services are provided by Oraclize.it
- fudged71 11y agoI think the most logical DAC should be a distributed network of lemonade stand franchises :)