getCodeHash
Read the current code hash for newly-created accounts.
Signature
function getCodeHash(
client: Client,
): Promise<Hex>Example
import { createPublicClient, createTransport, testnet } from "@left-curve/sdk"
const client = createPublicClient({ chain: testnet, transport: createTransport() })
const codeHash = await client.getCodeHash()Returns
Hex — the SHA-256 hash of the account contract's Wasm.