getWasmId

Extracts the WASM hash (ID) from an upload contract WASM transaction.

This helper function parses the transaction metadata and extracts the WASM hash from the return value of a successful WASM upload operation.

Return

The WASM hash as a hex string (lowercase), or null if: - The transaction is not a successful upload operation - The resultMetaXdr is null - The return value is not a bytes value

Throws

if the XDR cannot be parsed