Class AppendFileParams
File content append parameters.
Inherited Members
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 SourceCancellationToken
Optional cancellation token to interrupt the transaction submission process.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
Contents
The content to append to the file, in bytes.
Declaration
public ReadOnlyMemory<byte> Contents { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
File
The file receiving the appended content.
Declaration
public EntityId File { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityId |
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.