Contract.Create Method (byte[], byte[], byte, bool, string, string, string, string, string)
Calling this method in a smart contract will publish a new contract.
This is a replacement for PublishTransaction in version 2.0.
Namespace: Neo.SmartContract.Framework.Services.Neo
Assembly: Neo.SmartContract.Framework
Syntax
Parameters:
-
script: The contract bytecode as a byte array.
-
parameter_list: Parameter list as a byte array. Refer to Smart Contract Parameters and Return Values .
-
return_type: Return type as a byte. Refer to Smart Contract Parameters and Return Values .
-
need_storage: If the contract requires a persistent store, boolean.
-
name: The name of the contract as a string.
-
version: The version as a string.
-
author: The author name as a string.
-
email: The author email as a string.
-
description: The description of the contract as a string.
-
Return value: Contract .