Application | Bytes in rollup | Gas cost on layer 1 | Max scalability gain |
---|---|---|---|
ETH transfer | 12 | 21,000 | 105x |
ERC20 transfer | 16 (4 more bytes to specify which token) | ~50,000 | 187x |
Uniswap trade | ~14 (4 bytes sender + 4 bytes recipient + 3 bytes value + 1 byte max price + 1 byte misc) | ~100,000 | 428x |
Privacy-preserving withdrawal (Optimistic rollup) | 296 (4 bytes index of root + 32 bytes nullifier + 4 bytes recipient + 256 bytes ZK-SNARK proof) | 77x | |
Privacy-preserving withdrawal (ZK rollup) | 40 (4 bytes index of root + 32 bytes nullifier + 4 bytes recipient) | 570x |