paint-brush
On-chain Transactions: Should Enumerable Data Structures Be For On-chain Use Only?by@fearsomelamb789

On-chain Transactions: Should Enumerable Data Structures Be For On-chain Use Only?

by FearsomeLamb7892mMarch 10th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Enumerable data structures are meant for on-chain discovery and not front-end consumption. This means other protocols can easily and cheaply iterate over an account’s NFTs. However, at minting time, it becomes more and more expensive to loop over such items. If a user has, say 10 items, it will become quite expensive to check the list of ids and go through each one of the ids, consequently increasing the number of external calls from the protocol contract.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coins Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - On-chain Transactions: Should Enumerable Data Structures Be For On-chain Use Only?
FearsomeLamb789 HackerNoon profile picture
FearsomeLamb789

FearsomeLamb789

@fearsomelamb789

Polymath keyboard ape

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

About Author

FearsomeLamb789 HackerNoon profile picture
FearsomeLamb789@fearsomelamb789
Polymath keyboard ape

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
Newsbreak
Moomoo
Coffee-web
Tefter
Tefter
Mchone
Brutalist
Sumi
Digimarket
Digimarket