Show / Hide Table of Contents

Class ScheduleParams

Parameters for creating a scheduled transaction on the network. The inner transaction will be held by the network and executed when all required signatures are collected, or optionally delayed until the specified expiration time.

Inheritance
object
ScheduleParams
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 ScheduleParams
Examples

Schedule a HBAR transfer with a 1-hour expiration. The schedule executes automatically as soon as the inner transfer's signing requirements are satisfied; otherwise it drops at Expiration:

var receipt = await client.ScheduleAsync(new ScheduleParams
{
    Transaction = new TransferParams
    {
        CryptoTransfers = new[]
        {
            new CryptoTransfer(sender, -amount),
            new CryptoTransfer(recipient, amount)
        }
    },
    Memo = "Scheduled transfer from Hiero SDK sample",
    Expiration = new ConsensusTimeStamp(DateTime.UtcNow.AddHours(1))
});
Console.WriteLine($"Schedule created: {receipt.Schedule}");

Properties

| Edit this page View Source

Administrator

Optional administrator endorsement (key) for the schedule. When set, this key must sign any request to delete the schedule before it executes or expires.

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

CancellationToken

Optional cancellation token for this schedule creation request. If set, this token takes precedence over any cancellation token defined by the inner scheduled transaction parameters.

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

DelayExecution

When set to 
true

, the scheduled transaction will not execute until the expiration time, even if all required signatures are collected before then.

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

Expiration

Optional expiration time for the schedule. If the scheduled transaction has not been executed by this time, it will be removed from the network.

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

Memo

Optional memo describing the scheduled transaction. Limited to 100 bytes by the network.

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

Payer

Optional account that will pay for the execution of the scheduled transaction when it triggers. If not set, the payer of the schedule create transaction will be used.

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

Signatory

Additional private key, keys or signing callback method required to authorize the schedule creation.

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

Transaction

The transaction to schedule for future execution. This can be any supported transaction type that implements the schedulable transaction interface.

Declaration
public TransactionParams Transaction { get; set; }
Property Value
Type Description
TransactionParams
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph