Copy of 1.0 gas costs
Comments
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
Comment only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1
ApproximationsGas price
2
ParamCompute (µs)History (bytes)State (bytes)
Read / merkle proof size
BandwidthBloom topicMem quadComputedActualCoefficient
3
DUP333FASTESTSTEP
4
SWAP333FASTESTSTEP
5
PUSH333FASTESTSTEPMax execution time (us)31415921per microsecond
6
00Max history growth per day (MB)32176.705502127per history byte
7
ADD333FASTESTSTEPMax state growth per day (MB)113190.8991181per state byte
8
MUL555FASTSTEPMax read/merkle proof size (MB)120.2496713003
per read/merkle proof byte
9
SUB333FASTESTSTEPMax block size (KB)50.2561.053949per bandwidth byte
10
DIV555FASTSTEPMax bloom topics per block12566250.0073213per bloom topic
11
SDIV555FASTSTEPMax memory (MB)390.001969793296
per memory quad (eg. 160 bytes -> 5 words -> 25 quads)
12
MOD555FASTSTEP
13
SMOD555FASTSTEPGas limit3141592
14
ADDMOD888MIDSTEP
15
MULMOD888MIDSTEP
16
EXPBASE101010SLOWSTEP
17
EXPBYTE101010
18
SIGNEXTEND555FASTSTEP
19
LT333FASTESTSTEP
20
GT333FASTESTSTEP
21
SLT333FASTESTSTEP
22
SGT333FASTESTSTEP
23
EQ333FASTESTSTEP
24
ISZERO333FASTESTSTEP
25
AND333FASTESTSTEP
26
OR333FASTESTSTEP
27
XOR333FASTESTSTEP
28
NOT333FASTESTSTEP
29
BYTE333FASTESTSTEP
30
SHA3BASE303030
31
SHA3WORD666
32
ECRECOVER300030003000
33
SHA256BASE606060
34
SHA256WORD121212
35
RIPEMD160BASE600600600
36
RIPEMD160WORD120120120
37
IDENTITYBASE151515
38
IDENTITYWORD333
39
ADDRESS222QUICKSTEP
40
BALANCE3001000549.6713003400EXTSTEP
41
ORIGIN222QUICKSTEP
42
CALLER222QUICKSTEP
43
CALLVALUE222QUICKSTEP
44
CALLDATALOAD333FASTESTSTEP
45
CALLDATASIZE222QUICKSTEP
46
CALLDATACOPYBASE
333FASTESTSTEP
47
CODESIZE222QUICKSTEP
48
CODECOPYBASE333FASTESTSTEP
49
GASPRICE222QUICKSTEP
50
EXTCODESIZE201000269.6713003400EXTSTEP
51
EXTCODECOPYBASE
201000269.6713003400EXTSTEP
52
CODELOADWORD327.9894816085
When calling EXTCODECOPY, EXTCODESIZE OR a call operation, charge gas equal to the ENTIRE CODE LENGTH in words times this value
53
GCOPYWORD333
54
BLOCKHASH202020EXTSTEP
55
COINBASE222QUICKSTEP
56
TIMESTAMP222QUICKSTEP
57
NUMBER222QUICKSTEP
58
DIFFICULTY222QUICKSTEP
59
GASLIMIT222QUICKSTEP
60
POP222QUICKSTEP
61
MLOAD333FASTESTSTEP
62
MSTORE333FASTESTSTEP
63
MSTORE8333FASTESTSTEP
64
SLOAD200500324.8356501200
65
STORAGEADD2007508050020625.8916920000
66
STORAGEMOD20075005005353.9622455000
67
STORAGEKILL200750-80500-9917.9672
5000, plus 15000 refund
68
JUMP888MIDSTEP
69
JUMPI101010SLOWSTEP
70
PC222QUICKSTEP
71
MSIZE222QUICKSTEP
72
GAS222QUICKSTEP
73
JUMPDEST111
74
GLOG32101349.0623426375
75
GLOGTOPIC20161377.2953554375
76
GLOGDATA117.7055021278
77
CREATE10001000128100032390.2605432000
78
CREATEDATA31193.8991181200
New: full_memory_gas_cost = 3 * W + floor(W*W / 512)
79
GCALL4001000649.6713003700
80
GCALLVALUETRANSFER
10006705.5021279000
Note: 2300 additional free gas to internal execution for calls that have value transfer
81
GCALLSTIPEND02300
82
GCALLNEWACCOUNT
012824435.0871125000
83
0
84
RETURN550ZEROSTEP
85
STOP17505030.1265950ZEROSTEP
86
SUICIDE1000010005000ZEROSTEP
87
GSUICIDEREFUND-128-24435.08711
24000 refund
88
MEMWORD333
89
QUADCOEFFDIV10.001969793296
512 (divisor)
Old: full_memory_gas_cost = W + floor(W*W / 1024), W = words in memory
90
GTX100001200120011025062.142521000
91
GTXDATANONZERO
1167.7594511368
92
GTXDATAZERO0.06250.06254.2349656964
93
94
See https://github.com/ethereum/cpp-ethereum/blob/poc9trie/feeStructure.json
95
TierNameGas
96
0ZEROSTEP0
97
1QUICKSTEP2
98
2FASTESTSTEP3
99
3FASTSTEP5
100
4MIDSTEP8
Loading...
 
 
 
Sheet1
Sheet2