Type Alias hedera::ScheduleCreateTransaction

source ·
pub type ScheduleCreateTransaction = Transaction<ScheduleCreateTransactionData>;
Expand description

Create a new schedule entity (or simply, schedule) in the network’s action queue.

Upon SUCCESS, the receipt contains the ScheduleId of the created schedule. A schedule entity includes a scheduled_transaction_body to be executed.

When the schedule has collected enough signing keys to satisfy the schedule’s signing requirements, the schedule can be executed.

Aliased Type§

struct ScheduleCreateTransaction { /* private fields */ }

Implementations§

source§

impl ScheduleCreateTransaction

source

pub fn scheduled_transaction<D>( &mut self, transaction: Transaction<D> ) -> &mut Self
where D: TransactionExecute,

Sets the scheduled transaction.

§Panics

panics if the transaction is not schedulable, a transaction can be non-schedulable due to:

  • being a transaction kind that’s non-schedulable, IE, EthereumTransaction, or
  • being a chunked transaction with multiple chunks.
source

pub fn get_expiration_time(&self) -> Option<OffsetDateTime>

Returns the timestamp for when the transaction should be evaluated for execution and then expire.

source

pub fn expiration_time(&mut self, time: OffsetDateTime) -> &mut Self

Sets the timestamp for when the transaction should be evaluated for execution and then expire.

source

pub fn get_wait_for_expiry(&self) -> bool

Returns true if the transaction will be evaluated at expiration_time instead of when all the required signatures are received, false otherwise.

source

pub fn wait_for_expiry(&mut self, wait: bool) -> &mut Self

Sets if the transaction will be evaluated for execution at expiration_time instead of when all required signatures are received.

source

pub fn get_payer_account_id(&self) -> Option<AccountId>

Returns the id of the account to be charged the service fee for the scheduled transaction at the consensus time it executes (if ever).

source

pub fn payer_account_id(&mut self, id: AccountId) -> &mut Self

Sets the id of the account to be charged the service fee for the scheduled transaction at the consensus time that it executes (if ever).

source

pub fn get_schedule_memo(&self) -> Option<&str>

Returns the memo for the schedule entity.

source

pub fn schedule_memo(&mut self, memo: impl Into<String>) -> &mut Self

Sets the memo for the schedule entity.

source

pub fn get_admin_key(&self) -> Option<&Key>

Returns the Hedera key which can be used to sign a ScheduleDelete and remove the schedule.

source

pub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self

Sets the Hedera key which can be used to sign a ScheduleDelete and remove the schedule.