Skip to main content

codehash_at

Function codehash_at 

Source
pub async fn codehash_at<P: Provider>(
    provider: &P,
    address: Address,
) -> Result<B256>
Expand description

The code hash of the account at address, as EXTCODEHASH reports it for an account with code: keccak256 of its runtime bytecode. An account without code is an error rather than keccak256("") or zero, because setTrustRoots refuses both and a caller comparing against the hash of nothing has nothing to pin.