create Contract From External Ref
Creates an operation to instantiate a contract from a CAP-85 external reference (Protocol 28), with the tag given as text.
The tag bytes put on the wire are the UTF-8 encoding of tag; everything else matches the ByteArray overload.
Parameters
The contract holding the executable tag entry
The tag of the executable entry on the owner, as text
The deployer address (account or contract)
Optional arguments passed to the contract constructor
Optional 32 byte salt for contract id generation; random if not provided
Throws
if a provided salt is not exactly 32 bytes
Creates an operation to instantiate a contract from a CAP-85 external reference (Protocol 28).
The executable names an owner contract and a tag; the owner holds a persistent contract data entry under that tag whose value is the 32-byte hash of an already uploaded WASM, and the created instance runs that code. Nothing is uploaded as part of the deployment.
Uses CREATE_CONTRACT when constructorArgs is null or empty and CREATE_CONTRACT_V2 otherwise, like createContract.
Parameters
The contract holding the executable tag entry
The tag of the executable entry on the owner; matched byte for byte
The deployer address (account or contract)
Optional arguments passed to the contract constructor
Optional 32 byte salt for contract id generation; random if not provided
Throws
if a provided salt is not exactly 32 bytes