Class UpdateContractParams
Represents the properties on a contract that can be changed. Any property set to
null
on this object when submitted to the
UpdateContractAsync(UpdateContractParams, Action<IContext>)
method will be left unchanged by the system. The transaction must be
appropriately signed as described by the original
Administrator endorsement in order
to make changes. If there is no administrator endorsement specified,
the contract is imutable and cannot be changed.
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class UpdateContractParams
Properties
| Improve this Doc View SourceAdministrator
Replace this Contract's current administrative key signing rquirements with new signing requirements.
Declaration
public Endorsement Administrator { get; set; }
Property Value
Type | Description |
---|---|
Endorsement |
Remarks
For this request to be accepted by the network, both the current private
key(s) for this account and the new private key(s) must sign the transaction.
The existing key must sign for security and the new key must sign as a
safeguard to avoid accidentally changing the key to an invalid value.
The Payer account must carry the old and new
private keys for signing to meet this requirement.
Contract
The network address of the contract to update.
Declaration
public Address Contract { get; set; }
Property Value
Type | Description |
---|---|
Address |
Memo
The memo to be associated with the contract. Maximum of 100 bytes.
Declaration
public string Memo { get; set; }
Property Value
Type | Description |
---|---|
String |
RenewPeriod
Incremental period for auto-renewal of the contract account. If account does not have sufficient funds to renew at the expiration time, it will be renewed for a period of time the remaining funds can support. If no funds remain, the account will be deleted.
Declaration
public TimeSpan? RenewPeriod { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
Signatory
Additional private key, keys or signing callback method required to update this contract. Typically matches the Administrator endorsement associated with this 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.