I want to get an estimation of how much it would cost to store arbitrarily many elements in a mapping of the form BYTES32 -> BYTES32
.
I see here that a STORAGEADD
operation costs 20000 gas,
which I believe is the instruction to add an element to a mapping (is it correct?).
The gas price today is 20 gwei, so 20 * 10^9 wei which gives me a total of 20000 * 20 * 10^9 * 10^-18 = 0.0004 ether ~ 0.0048 USD (with 1 ETH = 12 USD).
Is it correct and is there any limit to how many elements I can put into the mapping (disregarding gas price limitations)?