Content
@
0 reply
0 recast
2 reactions
Kevin
@typedarray.eth
TIL the nonce of a contract account is the number of contracts it has created via CREATE or CREATE2. So, you can use eth_getTransactionCount / `cast nonce` to quickly find how many child contracts a factory has created, e.g. the Uniswap V2 factory on Base has created 718k pairs.
4 replies
4 recasts
57 reactions
Michael Amadi
@michaels
Also the amount of child contracts is the nonce - 1 since contracts have a default nonce of 1 when deployed.
0 reply
0 recast
1 reaction
Fucory
@fucory
That's awesome!
0 reply
0 recast
1 reaction
Thanh Dao
@teedcapital
wow
0 reply
0 recast
0 reaction
Amandano
@amandano
Not bad, keep it up next time!
0 reply
0 recast
0 reaction