abstract suspend fun getCodeHash(address: Address): Bytes32
(source)
Get code hash function.
This function is used by a VM to get the keccak256 hash of the code stored in the account at the given address. For existing accounts not having a code, this function returns keccak256 hash of empty data.
address
- The address of the account.
Return
The hash of the code in the account or null bytes if the account does not exist.