Class CreateContractParams
Smart Contract creation properties.
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class CreateContractParams
Properties
| Improve this Doc View SourceAdministrator
An optional endorsement that can be used to modify the contract details.
If left null, the contract is immutable once created.
Declaration
public Endorsement Administrator { get; set; }
Property Value
Type | Description |
---|---|
Endorsement |
Arguments
The arguments to pass to the smart contract constructor method.
Declaration
public object[] Arguments { get; set; }
Property Value
Type | Description |
---|---|
Object[] |
File
The address of the file containing the bytecode for the contract. The bytecode is encoded as a hexadecimal string in the file (not directly as the bytes of the bytescode).
Declaration
public Address File { get; set; }
Property Value
Type | Description |
---|---|
Address |
Gas
Maximum gas to pay for the constructor, unused gas will be refunded to the paying account.
Declaration
public long Gas { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
InitialBalance
The initial value in tinybars to send to this contract instance.
If the contract is not payable, providing a non-zero value will result
in a contract create failure.
Declaration
public long InitialBalance { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Memo
Short description of the contract, limit to 100 bytes.
Declaration
public string Memo { get; set; }
Property Value
Type | Description |
---|---|
String |
RenewPeriod
The renewal period for maintaining the contract bytecode and state.
The contract instance will be charged at this interval as appropriate.
Declaration
public TimeSpan RenewPeriod { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Signatory
Additional private key, keys or signing callback method required to create this contract. Typically matches the Administrator endorsement assigned to this new contract.
Declaration
public Signatory Signatory { get; set; }
Property Value
Type | Description |
---|---|
Signatory |
Remarks
Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction to change the state of this account. They will not be asked to sign transactions to retrieve the record if the "WithRecord" form of the method call is made. The client will rely on the Signatory from the context to sign the transaction requesting the record.