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
impl ScheduleCreateTransaction
sourcepub fn scheduled_transaction<D>(
&mut self,
transaction: Transaction<D>
) -> &mut Selfwhere
D: TransactionExecute,
pub fn scheduled_transaction<D>(
&mut self,
transaction: Transaction<D>
) -> &mut Selfwhere
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.
sourcepub fn get_expiration_time(&self) -> Option<OffsetDateTime>
pub fn get_expiration_time(&self) -> Option<OffsetDateTime>
Returns the timestamp for when the transaction should be evaluated for execution and then expire.
sourcepub fn expiration_time(&mut self, time: OffsetDateTime) -> &mut Self
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.
sourcepub fn get_wait_for_expiry(&self) -> bool
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.
sourcepub fn wait_for_expiry(&mut self, wait: bool) -> &mut Self
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.
sourcepub fn get_payer_account_id(&self) -> Option<AccountId>
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).
sourcepub fn payer_account_id(&mut self, id: AccountId) -> &mut Self
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).
sourcepub fn get_schedule_memo(&self) -> Option<&str>
pub fn get_schedule_memo(&self) -> Option<&str>
Returns the memo for the schedule entity.
sourcepub fn schedule_memo(&mut self, memo: impl Into<String>) -> &mut Self
pub fn schedule_memo(&mut self, memo: impl Into<String>) -> &mut Self
Sets the memo for the schedule entity.
sourcepub fn get_admin_key(&self) -> Option<&Key>
pub fn get_admin_key(&self) -> Option<&Key>
Returns the Hedera key which can be used to sign a ScheduleDelete
and remove the schedule.