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
3 recasts
227 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