get External Ref Wasm Hash
Resolves a CAP-85 external reference to the 32-byte WASM hash it names.
A contract created from an external reference does not carry its own code hash. The reference names an owner contract and a tag, and the owner holds a persistent contract data entry keyed by that tag whose value is the 32-byte hash of an already uploaded WASM. This method reads that entry off the ledger; the owner contract is never invoked. The tag bytes the reference carries reach the ledger key byte for byte, whether or not they are valid UTF-8, so the key matches the entry the owner wrote for any tag.
Return
The 32-byte WASM hash the tag entry holds
Parameters
The external reference naming the owner contract and the tag
See also
Throws
If the owner is not a contract address; only a contract can hold the executable tag entry, so no request is issued
If the owner has no entry under the tag (missing or archived), if the entry is not a contract data entry, or if the entry value does not hold exactly 32 bytes
If the RPC request fails