Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18407

Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

1 vote
0 answers
181 views

Gas estimation failed in geth private network with remix

I have tried to deploy and run transaction in Remix with a simple solidity as follows. … pragma solidity >=0.4.21 <0.6.0; contract Simple { uint256 storedNumber; function setNumber(uint256 x) public { storedNumber = x; } function getNumber() public view returns (uint256 …
0 votes
1 answer
2k views

Solidity: Is there any way to store the start time of solidity code? now() function returns ...

I wanted to get a start time of solidity code, so I used now() previous which only returns block.timestamp whenever the solidity got started. … Is there any way to find the start time in solidity? …
2 votes
2 answers
3k views

Solidity: Is there any way to calculate the elapsed time for smart contract?

pragma solidity ^0.5.0; function { uint startTime = now; uint endTime = 0; unit elapsedTime = 0; .... endTime = now; elapsedTime = endTime - startTime; } …