Show / Hide Table of Contents

Class AppendFileParams

File content append parameters.

Inheritance
object
TransactionParams
TransactionParams<TransactionReceipt>
AppendFileParams
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class AppendFileParams : TransactionParams<TransactionReceipt>
Examples

Append bytes to an existing file. Transactions are capped at about 4KB, so large payloads should be chunked across several AppendFile calls:

await client.AppendFileAsync(new AppendFileParams
{
    File = createReceipt.File,
    Contents = Encoding.UTF8.GetBytes(" More content appended.")
});

Properties

| Edit this page View Source

CancellationToken

Optional cancellation token to interrupt the transaction submission process.

Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
Type Description
CancellationToken?
| Edit this page View Source

Contents

The content to append to the file, in bytes.

Declaration
public ReadOnlyMemory<byte> Contents { get; set; }
Property Value
Type Description
ReadOnlyMemory<byte>
| Edit this page View Source

File

The file receiving the appended content.

Declaration
public EntityId File { get; set; }
Property Value
Type Description
EntityId
| Edit this page View Source

Signatory

Additional private key, keys or signing callback method required to append to this file. Typically matches the Endorsement associated with this file.

Declaration
public Signatory? Signatory { get; set; }
Property Value
Type Description
Signatory
Remarks

Keys or callbacks added here will be combined with those already identified in the client object's context when signing this transaction to append to this file.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph