Content pfp
Content
@
0 reply
0 recast
2 reactions

Kevin pfp
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
34 recasts
219 reactions

Michael Amadi pfp
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
2 reactions

Fucory pfp
Fucory
@fucory
That's awesome!
0 reply
0 recast
1 reaction

Amandano pfp
Amandano
@amandano
Not bad, keep it up next time!
0 reply
0 recast
0 reaction

Thanh Dao pfp
Thanh Dao
@teedcapital
wow
0 reply
0 recast
0 reaction