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