pmcoelho
  • Member for 3 years, 7 months
  • Last seen more than a week ago
Is it possible to build a simple dice rolling game on Ethereum with Solidity?
0 votes

you can take a look at oracles to make external calls from smart contracts. http://www.oraclize.it/, keep in mind that there are several drawbacks on making external calls from a smart contract such ...

View answer
How to read previous blocks data?
0 votes

You can use: web3.eth.getBlock(blockHashOrBlockNumber [, returnTransactionObjects] [, callback]) checkout web3 documentation: https://web3js.readthedocs.io/en/1.0/web3-eth.html#getblock

View answer
transfering token from one account to another
1 votes

you are declaring transfer as a view function, this prevents it from altering state. It should work if you remove the view modifier. https://solidity.readthedocs.io/en/v0.4.24/contracts.html#view-...

View answer