paint-brush
How Not To Run Out of Gas in Ethereumby@alcueca
4,001 reads
4,001 reads

How Not To Run Out of Gas in Ethereum

by Alberto Cuesta Cañada 8mDecember 1st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The block size is the biggest constraint to the development of the Ethereum network. The exact limit varies, but currently it is about 10 million gas. Each operation has a different gas cost, but at the end you need to remember that reading one data element from storage is 200 gas. The key to code smart contracts with the maximum utility is to be very careful with the data structures that we use, to know the limits to computation inherent to block gas limits, and to break down work into separate calls when everything else fails.

Coin Mentioned

Mention Thumbnail
featured image - How Not To Run Out of Gas in Ethereum
Alberto Cuesta Cañada  HackerNoon profile picture
Alberto Cuesta Cañada

Alberto Cuesta Cañada

@alcueca

Hello. I design and build blockchain solutions. I like to make the complex simple.

About @alcueca
LEARN MORE ABOUT @ALCUECA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Alberto Cuesta Cañada  HackerNoon profile picture
Alberto Cuesta Cañada @alcueca
Hello. I design and build blockchain solutions. I like to make the complex simple.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite