Hello folks, I saw a Medium that it is possible on a smart contract to batch transactions to save gas on a SC.
For example, I'd like to batch Meta transaction signed by my users on my smart contract method with a loop inside.
The thing I don't understand, how is it possible to save some gas on ethereum using batching Tx, when ethereum Gas used formula is based on the sum of solidity (Opcode) opérations done in the Tx ?
https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0

Nov 20, 2023, 3:01 PM
Because each transaction has an overhead of 21k gas. So if you can accomplish a batch of tx actions in one tx, you save 21k gas for each tx you didn’t have to make
Nov 20, 2023, 3:50 PM

© 2024 Draquery.com All rights reserved.