Show / Hide Table of Contents

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.

Inheritance
Object
UpdateContractParams
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class UpdateContractParams

Properties

| Improve this Doc View Source

Administrator

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.

| Improve this Doc View Source

Contract

The network address of the contract to update.

Declaration
public Address Contract { get; set; }
Property Value
Type Description
Address
| Improve this Doc View Source

Memo

The memo to be associated with the contract. Maximum of 100 bytes.

Declaration
public string Memo { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

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>
| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph