<
 
 
 
 
×
>
hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 01:18:01 May 03, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Is there a library for encoding/decoding arrays into/from bytedata for transactions?

SixophreniaSixophrenia Member Posts: 7
There is a smart contract I want to make.
I want to give users the ability to submit multiple commands to my contract without having to do multiple transactions.

I know that everything is purely byte data. So I wanted to know if there was a library already created for handling things like this.
My goal is to handle 1 to 1000. I know that gas prices increase with more computational demands.
I know that regular transactions cost 21k gas, and I know that ADDing costs 3gas. So 1000 commands bundled into the transaction would be around an additional 3000 gas, which isn't bad
Sign In or Register to comment.