SystemDeleteTransaction

Type Alias SystemDeleteTransaction 

Source
pub type SystemDeleteTransaction = Transaction<SystemDeleteTransactionData>;
Expand description

Delete a file or smart contract - can only be done by a Hiero admin.

Aliased Type§

pub struct SystemDeleteTransaction { /* private fields */ }

Implementations§

Source§

impl SystemDeleteTransaction

Source

pub fn get_contract_id(&self) -> Option<ContractId>

Returns the contract ID which should be deleted.

Source

pub fn contract_id(&mut self, id: impl Into<ContractId>) -> &mut Self

Sets the contract ID which should be deleted.

Source

pub fn get_file_id(&self) -> Option<FileId>

Returns the file ID which should be deleted.

Source

pub fn file_id(&mut self, id: impl Into<FileId>) -> &mut Self

Sets the file ID which should be deleted.

Source

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

Returns the timestamp at which the “deleted” entity should truly be permanently deleted.

Source

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

Sets the timestamp at which the “deleted” file should truly be permanently deleted.