Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 4.32 KB

get-schedule-info.md

File metadata and controls

65 lines (51 loc) · 4.32 KB

Get schedule info

ScheduleInfoQuery is a consensus node query that returns information about the current state of a schedule transaction on a Hedera network.

Schedule Info Response

Field Description
Schedule ID The ID of the schedule transaction.
Creator Account ID The Hedera account that created the schedule transaction in x.y.z format.
Payer Account ID The Hedera account paying for the execution of the scheduled transaction in x.y.z format.
Scheduled Transaction Body The transaction body of the transaction that is being scheduled by the schedule transaction.
Signatories The public keys that have signed the transaction.
Admin Key The key that can delete the schedule transaction, if set
Expiration Time The date and time the schedule transaction will expire
Executed Time The time the schedule transaction was executed. If the schedule transaction has not executed this field will be left null.
Deletion Time The consensus time the schedule transaction was deleted. If the schedule transaction was not deleted, this field will be left null.
Memo Publicly visible information about the Schedule entity, up to 100 bytes. No guarantee of uniqueness.

Query Signing Requirements

  • The transaction fee payer account key is required to sign

Methods

MethodTypeRequirement
setScheduleId(<scheduleId>)ScheduleIdRequired
<ScheduleInfo>.scheduleIdScheduleIdOptional
<ScheduleInfo>.scheduledTransactionIdTransactionIdOptional
<ScheduleInfo>.creatorAccountIdAccountIdOptional
<ScheduleInfo>.payerAccountIdAccountIdOptional
<ScheduleInfo>.adminKeyKeyOptional
<ScheduleInfo>.signatoriesKeyOptional
<ScheduleInfo>.deletedAtInstantOptional
<ScheduleInfo>.expirationAtInstantOptional
<ScheduleInfo>.memoStringOptional
<ScheduleInfo>.waitForExpirybooleanOptional

{% tabs %} {% tab title="Java" %}

//Create the query
ScheduleInfoQuery query = new ScheduleInfoQuery()
     .setScheduleId(scheduleId);

//Sign with the client operator private key and submit the query request to a node in a Hedera network
ScheduleInfo info = query.execute(client);

{% endtab %}

{% tab title="JavaScript" %}

//Create the query
const query = new ScheduleInfoQuery()
     .setScheduleId(scheduleId);

//Sign with the client operator private key and submit the query request to a node in a Hedera network
const info = await query.execute(client);

{% endtab %}

{% tab title="Go" %}

//Create the query
query := hedera.NewScheduleInfoQuery().
		SetScheduleID(scheduleId)

//Sign with the client operator private key and submit to a Hedera network
scheduleInfo, err := query.Execute(client)

if err != nil {
		panic(err)
}

{% endtab %} {% endtabs %}